class documentation
class PersistentRemoteUserMiddleware(RemoteUserMiddleware): (source)
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 |
Undocumented |
Inherited from RemoteUserMiddleware
:
Method | clean |
Allow the backend to clean the username, if the backend defines a clean_username method. |
Method | process |
Undocumented |
Class Variable | header |
Undocumented |
Method | _remove |
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 |
Undocumented |
Class Variable | sync |
Undocumented |
Instance Variable | get |
Undocumented |
Method | _async |
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 |
Undocumented |