# "Authentication failure! csrf\_detected: OmniAuth::Strategies::OAuth2::CallbackError" Error due to missing 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:** [May 29, 2020, 12:32pm 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:** 3

<div class="post-metadata">

**Author:** ![Arvind\_Hebbal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arvind_hebbal/32/143497_2.png) [@Arvind\_Hebbal](https://meta.discourse.org/u/Arvind_Hebbal)\
**Post date:** [May 29, 2020, 2:05pm UTC](https://meta.discourse.org/t/authentication-failure-csrf-detected-omniauth-callbackerror-error-due-to-missing-session-omniauth-state/153222/3 "2020-05-29T14:05:59Z")

</div>

Yes @david authentication is starting and ending in the same browser. Have not changed the value of same\_site\_cookies. It is default set to “Lax”.

---

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