# 「Authentication failure! csrf\_detected: OmniAuth::Strategies::OAuth2::CallbackError」エラーの原因は session\["omniauth.state"\] の欠如

**URL:** <https://meta.discourse.org/t/authentication-failure-csrf-detected-omniauth-callbackerror-error-due-to-missing-session-omniauth-state/153222>\
**Category:** SSO\
**Tags:** unsupported-install\
**Created:** [2020 年 5 月 29 日午後 12:32 UTC](https://meta.discourse.org/t/authentication-failure-csrf-detected-omniauth-callbackerror-error-due-to-missing-session-omniauth-state/153222 "2020-05-29T12:32:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2020 年 5 月 29 日午後 12:36 UTC](https://meta.discourse.org/t/authentication-failure-csrf-detected-omniauth-callbackerror-error-due-to-missing-session-omniauth-state/153222/2 "2020-05-29T12:36:55Z")

</div>

認証は同じブラウザ内で開始され、終了していますか？デフォルトの `same site cookies` 設定値を変更しましたか？

---

_[View the full topic](https://meta.discourse.org/t/authentication-failure-csrf-detected-omniauth-callbackerror-error-due-to-missing-session-omniauth-state/153222)._
