django: Add OIDCSessionExpiredMiddleware
Last piece of code that can be moved from swh-web
to swh-auth
.
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 swh-web#3150 (closed)
Depends on !19 (closed)
Migrated from D5384 (view on Phabricator)