# OAuth2 and Microsoft ADFS

**URL:** <https://meta.discourse.org/t/oauth2-and-microsoft-adfs/103357>\
**Category:** Product Support\
**Created:** [3 בדצמבר,‏ 2018,‏ 2:49pm UTC](https://meta.discourse.org/t/oauth2-and-microsoft-adfs/103357 "2018-12-03T14:49:42Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![andyjanes](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@andyjanes](https://meta.discourse.org/u/andyjanes)\
**Post date:** [10 בדצמבר,‏ 2018,‏ 4:43pm UTC](https://meta.discourse.org/t/oauth2-and-microsoft-adfs/103357/13 "2018-12-10T16:43:26Z")

</div>

Hi David,

I thought I was making progress then I hit against yet another problem! This time it’s to do with Cookies and it would seem that OmniAuth is trying to store the entire JWT response which is too long. To be honest it could be something to do with what I’ve done but I can’t make any further progress as this is too deep into RoR for me 😉

> ActionDispatch::Cookies::CookieOverflow (ActionDispatch::Cookies::CookieOverflow)  
> /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action\_dispatch/middleware/cookies.rb:649:in `commit’

Any advice would be appreciated before I throw in the towel with this one..

Thanks

Andy

---

_[View the full topic](https://meta.discourse.org/t/oauth2-and-microsoft-adfs/103357)._
