class documentation

class PersistentRemoteUserMiddleware(RemoteUserMiddleware): (source)

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 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
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.

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
Class Variable async_capable Undocumented
Class Variable sync_capable Undocumented
Instance Variable get_response 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.
Instance Variable _is_coroutine Undocumented