noc.core.middleware.remoteuser

Module Contents

noc.core.middleware.remoteuser.HEADER = HTTP_REMOTE_USER
noc.core.middleware.remoteuser.remote_user_middleware(get_response)
Authenticate against REMOTE_USER request header

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.

Parameters:get_response – Callable returning response from downstream middleware
Returns: