# OIDC: Authorization timed out

**URL:** https://meta.discourse.org/t/oidc-authorization-timed-out/165631
**Category:** Support
**Tags:** openid-connect
**Created:** [September 28, 2020, 12:09pm UTC](https://meta.discourse.org/t/oidc-authorization-timed-out/165631 "2020-09-28T12:09:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Martin\_Delille](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin_delille/32/122252_2.png) [@Martin\_Delille](https://meta.discourse.org/u/Martin_Delille)
#### Post date: [September 28, 2020, 12:09pm UTC](https://meta.discourse.org/t/oidc-authorization-timed-out/165631/1 "2020-09-28T12:09:54Z")

</div>

When I connect using the plugin I have the following error: `Authorization timed out, or you have switched browsers. Please try again.` but if I click on the forum logo, I’m correctly logged in.

When looking at the log I have this error: `(oidc) Authentication failure! csrf_detected: OmniAuth::Strategies::OAuth2::CallbackError, csrf_detected | CSRF detected`.

Any idea what is going on?

---

<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: [September 28, 2020, 3:30pm UTC](https://meta.discourse.org/t/oidc-authorization-timed-out/165631/2 "2020-09-28T15:30:59Z")

</div>

Hi Martin - it’s difficult to know for sure. The CSRF error can be caused by a number of different things. Is this for a public site which you could share a link for?

---

<div class="post-metadata">

### Author: ![jayesh.ruchandani](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@jayesh.ruchandani](https://meta.discourse.org/u/jayesh.ruchandani)
#### Post date: [January 3, 2025, 1:00pm UTC](https://meta.discourse.org/t/oidc-authorization-timed-out/165631/5 "2025-01-03T13:00:20Z")

</div>

We are on managed hosting and trying to use OIDC via Azure AD. On direction , we are getting exact same error  
Authorization timed out or browser change detected

Has anyone been able to figure out a solution for this
