websauna.system.auth.authentication module

The user authentication helper functions.

websauna.system.auth.authentication.get_request_user(request)[source]

Reify method for request.user

Return type

Optional[User]

websauna.system.auth.authentication.get_user(session_token, request)[source]

Extract the logged in user from the request object using Pyramid’s authentication framework.

Return type

Optional[User]