Retrieves the authenticated username from the request.
Retrieves the authenticated username from the request.
Attempts to read the "username" session variable, but if no such thing exists, attempts to authenticate based on the the HTTP Authorization header, finally if that also fails, authenticates based on credentials in the query string.
the authentication result
Async version of Security.Authenticated.
Async version of Security.Authenticated.
type of user+request
auth function
callback if auth fails
authenticated action
an authenticated action
Logs authenticated requests.
Logs authenticated requests.
Called when an unauthorized request has been made.
Called when an unauthorized request has been made. Also called when a failed authentication attempt is made.
header auth failure, including request headers
"auth failed" result
Override if you intend to use password authentication.
Override if you intend to use password authentication.
True if the credentials are valid; false otherwise. False by default.