class documentation

class PersistentRemoteUserMiddleware(RemoteUserMiddleware):

View In Hierarchy

Middleware for web-server provided authentication on logon pages.

Like RemoteUserMiddleware but keeps the user authenticated even if the header (REMOTE_USER) is not found in the request. Useful for setups when the external authentication via REMOTE_USER is only expected to happen on some "logon" URL and the rest of the application wants to use Django's authentication mechanism.

Class Variable force​_logout​_if​_no​_header Undocumented

Inherited from RemoteUserMiddleware:

Method ​_remove​_invalid​_user Remove the current authenticated user in the request which is invalid but only if the user is authenticated via the RemoteUserBackend.
Method clean​_username Allow the backend to clean the username, if the backend defines a clean_username method.
Method process​_request Undocumented
Class Variable header Undocumented

Inherited from MiddlewareMixin (via RemoteUserMiddleware):

Async Method __acall__ Async version of __call__ that is swapped in when an async request is running.
Method __call__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method ​_async​_check If get_response is a coroutine function, turns us into async mode so a thread is not consumed during a whole request.
Class Variable async​_capable Undocumented
Class Variable sync​_capable Undocumented
Instance Variable ​_is​_coroutine Undocumented
Instance Variable get​_response Undocumented
force_logout_if_no_header: bool =