HomeSoftware Heritage

django: Add OIDCSessionExpiredMiddleware

Description

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