-
- Downloads
django: Add OIDCSessionExpiredMiddleware
That middleware detects when a user previously logged in using the OpenID Connect authentication backend got his session expired. In that case it will perform a redirection to a django view whose name must be set in the SWH_AUTH_SESSION_EXPIRED_REDIRECT_VIEW django setting (typically a logout view). Related to T3150
Showing
- swh/auth/django/middlewares.py 68 additions, 0 deletionsswh/auth/django/middlewares.py
- swh/auth/tests/django/app/apptest/settings.py 2 additions, 0 deletionsswh/auth/tests/django/app/apptest/settings.py
- swh/auth/tests/django/app/apptest/urls.py 2 additions, 0 deletionsswh/auth/tests/django/app/apptest/urls.py
- swh/auth/tests/django/test_middlewares.py 71 additions, 0 deletionsswh/auth/tests/django/test_middlewares.py
swh/auth/django/middlewares.py
0 → 100644
swh/auth/tests/django/test_middlewares.py
0 → 100644
Please register or sign in to comment