Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assert Call NameLoad NameLoad Str Str Assign AttributeStore NameLoad attr Call NameLoad Lambda arguments args defaults Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Raise Call NameLoad Str TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Return If AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad body Return orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad decorator_list
N/A django.contrib auth django.contrib.auth load_backend django.contrib.auth.backends RemoteUserBackend django.core.exceptions ImproperlyConfigured django.utils.functional SimpleLazyObject get_user N/A N/A request N/A N/A N/A N/A N/A hasattr request _cached_user N/A N/A N/A request _cached_user N/A N/A auth get_user request N/A N/A request _cached_user N/A AuthenticationMiddleware N/A object N/A process_request N/A N/A self request N/A N/A N/A N/A hasattr request session The Django authentication middleware requires session middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'django.contrib.sessions.middleware.SessionMiddleware' before 'django.contrib.auth.middleware.AuthenticationMiddleware'. N/A N/A request user N/A SimpleLazyObject N/A N/A N/A N/A N/A get_user request N/A N/A SessionAuthenticationMiddleware N/A object N/A N/A 
    Formerly, a middleware for invalidating a user's sessions that don't
    correspond to the user's current session authentication hash. However, it
    caused the "Vary: Cookie" header on all responses.

    It's now a shim to allow a single settings file to more easily support
    multiple versions of Django. Will be RemovedInDjango20Warning.
     process_request N/A N/A self request N/A N/A N/A N/A N/A RemoteUserMiddleware N/A object N/A N/A 
    Middleware for utilizing Web-server-provided authentication.

    If request.user is not authenticated, then this middleware attempts to
    authenticate the username passed in the ``REMOTE_USER`` request header.
    If authentication is successful, the user is automatically logged in to
    persist the user in the session.

    The header used is configurable and defaults to ``REMOTE_USER``.  Subclass
    this class and change the ``header`` attribute if you need to use a
    different header.
     N/A header REMOTE_USER N/A force_logout_if_no_header True process_request N/A N/A self request N/A N/A N/A N/A N/A hasattr request user N/A N/A N/A ImproperlyConfigured The Django remote user auth middleware requires the authentication middleware to be installed.  Edit your MIDDLEWARE_CLASSES setting to insert 'django.contrib.auth.middleware.AuthenticationMiddleware' before the RemoteUserMiddleware class. N/A N/A N/A username N/A N/A request META N/A N/A self header N/A N/A N/A KeyError N/A N/A N/A N/A self force_logout_if_no_header N/A N/A request user is_authenticated N/A N/A N/A N/A self _remove_invalid_user request N/A N/A N/A N/A request user is_authenticated N/A N/A N/A N/A N/A N/A request user get_username N/A N/A self clean_username username request N/A N/A N/A N/A N/A N/A self _remove_invalid_user request N/A user N/A N/A auth authenticate remote_user username N/A user N/A N/A N/A request user user N/A N/A N/A auth login request user N/A clean_username N/A N/A self username request N/A N/A N/A 
        Allows the backend to clean the username, if the backend defines a
        clean_username method.
         N/A backend_str N/A N/A request session N/A N/A auth BACKEND_SESSION_KEY N/A backend N/A N/A auth load_backend backend_str N/A N/A N/A username N/A N/A backend clean_username username N/A N/A N/A AttributeError N/A N/A N/A username N/A _remove_invalid_user N/A N/A self request N/A N/A N/A 
        Removes the current authenticated user in the request which is invalid
        but only if the user is authenticated via the RemoteUserBackend.
         N/A N/A N/A stored_backend N/A load_backend N/A N/A N/A request session get N/A auth BACKEND_SESSION_KEY N/A N/A N/A ImportError N/A N/A N/A N/A auth logout request N/A N/A N/A isinstance stored_backend RemoteUserBackend N/A N/A N/A N/A auth logout request N/A N/A PersistentRemoteUserMiddleware N/A RemoteUserMiddleware N/A N/A 
    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.
     N/A force_logout_if_no_header False N/A