Called when a user is not authenticated.
Called when a user is not authenticated.
As defined by RFC 2616, the status code of the response should be 401 Unauthorized.
The request header.
The result to send to the client.
Exception handler which translates an [com.mohiva.play.silhouette.api.exceptions.NotAuthenticatedException]] into a 401 Unauthorized result.
Exception handler which translates an [com.mohiva.play.silhouette.api.exceptions.NotAuthenticatedException]] into a 401 Unauthorized result.
The request header.
A partial function which maps an exception to a Play result.
Handles errors when a user is not authenticated.