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
Hi, I'm getting csrf_detected and having trouble figuring out where I'm going wrong. I monkey patched the Google strategy directly in the config/initializers/omniauth.rb because by the time my initializer is ran the Omniauth::Strategies::GoogleOauth2 has already inherited OmniAuth::Strategies::OAuth2.
Please note the Rails.logger.warn "i've failed" line, I see it when the state tokens don't match. I call this the bad but good scenario.
What confuses me is when the state tokens match but I still get the csrf detected, but I don't see the "i've failed" message. I call this the good but bad scenario.
Any help figuring out what's going on here would be much appreciated.
The text was updated successfully, but these errors were encountered:
Hi, I'm getting csrf_detected and having trouble figuring out where I'm going wrong. I monkey patched the Google strategy directly in the
config/initializers/omniauth.rb
because by the time my initializer is ran the Omniauth::Strategies::GoogleOauth2 has already inherited OmniAuth::Strategies::OAuth2.Please note the
Rails.logger.warn "i've failed"
line, I see it when the state tokens don't match.I call this the bad but good scenario.
What confuses me is when the state tokens match but I still get the csrf detected, but I don't see the "i've failed" message. I call this the good but bad scenario.
Any help figuring out what's going on here would be much appreciated.
The text was updated successfully, but these errors were encountered: