GoIncremental/negroni-oauth2

Redirect loop in Chrome and Firefox but not in IE

anweiss opened this issue · 1 comments

For the life of me, I can't seem to figure out why my app is resulting in a redirect loop only in Chrome and Firefox but not in IE. When my provider initiates a redirect request to my callback, oauth2callback, my app for some reason keeps re-initiating new requests for authorization codes; thus resulting in a redirect loop. My code is here: https://github.com/AzureFederal/azurefederalweb/blob/master/app.go.

I've tried tracing through oauth2.go and the redirect loop seems to be initiated at line 241.

@Bochenski, I noticed that you set the token to nil to avoid a redirection loop in line 206, but not sure if this has anything to do with my issue.

Thanks!

Faced similar redirect loop while using with cookie-store. For me the issue was the size of the cookie was more than 4096, so the app was not able to set the cookie.