noc.core.middleware.tls

Module Contents

noc.core.middleware.tls._tls
noc.core.middleware.tls.tls_middleware(get_response)
Store request and user to thread-local storage
Parameters:get_response – Callable returning response from downstream middleware
Returns:
noc.core.middleware.tls.set_user(user)
Set up TLS user
noc.core.middleware.tls.get_user()
Get current TLS user
noc.core.middleware.tls.get_request()
Get current TLS request