You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@samratjp any luck? I'm having the same issue with a very vanilla setup (not using devise). It works if I add provider_ignores_state: true in the config (as shown in that link you referenced), but it seems like that shouldn't be required. Interested to know if you've learned anything!
I'm using:
ERROR -- omniauth: (instagram) Authentication failure! csrf_detected: OmniAuth::Strategies::OAuth2::CallbackError, csrf_detected | CSRF detected
I don't know if this is helpful but found that this issue happens when you send along state and on callback it doesn't match.
And this is my callback url - Started
GET "/auth/instagram/callback?code=xxxxxxxxx&state=yyyyyyyy"
And my omniauth initializer setup is pretty vanilla too:
provider :instagram, OauthSecrets.instagram.client_id, OauthSecrets.instagram.client_secret
I assume this setup sends a state along? I know it's optiona but would be surprised if we're not doing this already?
Anyways, please let me know if you have any suggestions?
Thanks :)
The text was updated successfully, but these errors were encountered: