LoginSignup
1
1

More than 5 years have passed since last update.

Omniauthの連携で`Authentication failure! csrf_detected`が出た場合

Last updated at Posted at 2017-03-11

Railsで以下のようなエラーがOmniauth認証で出た場合は、config/session_store.rbkeyオプションを変更することで解消する。

2017-03-11T10:57:11.171104+00:00 app[web.1]: I, [2017-03-11T10:57:11.171046 #4]  INFO -- omniauth: (google_oauth2) Callback phase initiated.
2017-03-11T10:57:11.171483+00:00 app[web.1]: E, [2017-03-11T10:57:11.171438 #4] ERROR -- omniauth: (google_oauth2) Authentication failure! csrf_detected: OmniAuth::Strategies::OAuth2::CallbackError, csrf_detected | CSRF detected

Created with NOOTO

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1