Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frequent "OIDC callback state not found in session oidc_states" #631

Open
lukasrad02 opened this issue Oct 26, 2024 · 1 comment
Open

Frequent "OIDC callback state not found in session oidc_states" #631

lukasrad02 opened this issue Oct 26, 2024 · 1 comment
Labels
external dependency Issue depends on an external partner [P] minor [T] bug Something isn't working

Comments

@lukasrad02
Copy link
Contributor

At our production instance, the following error occurs frequently (approx. 2 times a day):

OIDC callback state not found in session oidc_states!

SuspiciousOperation at /oidc/callback/
OIDC callback state not found in session oidc_states!

There is an issue at the library we're using, where some possible workarounds are described: mozilla/mozilla-django-oidc#435

We should check whether this bug affects our users and, if it does, how to resolve the issue (workarounds described in the referenced issue, other library, etc).

In my experience, the error occurs especially when a user navigates back in their browser. Maybe, the OIDC callback is part of the history and users go back to the callback URL with some old, invalid state. However, I haven't investigated on this in detail, so there may be other causes as well.

@lukasrad02 lukasrad02 added [T] bug Something isn't working [P] minor external dependency Issue depends on an external partner labels Oct 26, 2024
@lukasrad02
Copy link
Contributor Author

After some observation, it seems like the behavior is triggered especially when a users visits a tab that their browser has removed from RAM and thus reloads it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external dependency Issue depends on an external partner [P] minor [T] bug Something isn't working
Development

No branches or pull requests

1 participant