Railsで以下のようなエラーがOmniauth認証で出た場合は、config/session_store.rb
のkey
オプションを変更することで解消する。
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