# "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:** 6

<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:** [May 29, 2020, 2:51pm UTC](https://meta.discourse.org/t/authentication-failure-csrf-detected-omniauth-callbackerror-error-due-to-missing-session-omniauth-state/153222/6 "2020-05-29T14:51:35Z")

</div>

Unfortunately it is very difficult for us to offer community support here for custom installations. Please try setting up Discourse using the [official guide](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md). If you’re not able to do that, maybe someone in the #Marketplace could help out for a fee

---

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