-
Notifications
You must be signed in to change notification settings - Fork 0
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
With OIDC enabled the main page fails after some time of inactivity #422
Comments
This happens because the ID token has expired and this code path is hit: https://github.com/mozilla/mozilla-django-oidc/blob/2c2334fdc9b2fc72a492b5f0e990b4c30de68363/mozilla_django_oidc/middleware.py#L131 The expiration interval is by default 15 min (https://github.com/mozilla/mozilla-django-oidc/blob/2c2334fdc9b2fc72a492b5f0e990b4c30de68363/mozilla_django_oidc/views.py#L58) |
What happens is:
|
What would be the correct behavior here, should we catch the exception and then redirect somewhere? How do we obtain a new id token? |
The correct behaviour would be to redirect to the Let's discuss it some times this week |
Investigated the setting If this and the |
[#422] Make the Django session length and the OIDC session check configurable
FYI, in team bron and OF we opted to remove the SessionRefreshMiddleware from the backend - that might also solve this problem! |
Reproducing
backend/docker-services/keycloak
withdocker compose up
.base.py
)OIDC_RENEW_ID_TOKEN_EXPIRY_SECONDS
= 0.oidc_config_test.json
in the backendhttp://localhost:3000/login
) and login with OIDC.http://localhost:3000/
This should cause a crash 🤔
To do
Frontend
Backend
The text was updated successfully, but these errors were encountered: