OIDC: Authorization timed out

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?

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?

1 Like

I installed the [discourse-oauth2-basic],


fill in the information .
here is the problem . I can login use the wordperss,but the discourse can not.
Authorization timed out, or you have switched browsers. Please try again.