Logs authenticated requests.
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 wrapped in an scala.Option if successfully authenticated, scala.None otherwise
Basic HTTP authentication.
Basic HTTP authentication.
The "Authorization" request header should be like: "Basic base64(username:password)", where base64(x) means x base64-encoded.
request from which the Authorization header is validated
the username wrapped in an Option if successfully authenticated, None otherwise
Authenticates based on the "u" and "p" query string parameters.
Authenticates based on the "u" and "p" query string parameters.
request
the username, if successfully authenticated
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
authentication that fails the Future if authentication fails
an authenticated action
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.
Returns HTTP 401 by default; override to handle unauthorized requests in a more app-specific manner.
header of request which failed authentication
"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.