PersistentRemoteUserMiddleware
Middleware for web-server provided authentication on logon pages.
Like RemoteUserMiddleware but keeps the user authenticated even if
the request.META key is not found in the request. Useful for
setups when the external authentication is only expected to happen
on some "logon" URL and the rest of the application wants to use
Django's authentication mechanism.
Attributes
| Attribute | Type | Description |
|---|---|---|
| force_logout_if_no_header | boolean = False | Determines whether to log out the user when the authentication header is missing from the request, defaulting to False to maintain persistent sessions. |
Constructor
Signature
def PersistentRemoteUserMiddleware() - > null
Signature
def PersistentRemoteUserMiddleware()