com.mohiva.play.silhouette.api
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 messages for the current language.
The result to send to the client.
Called when a user is authenticated but not authorized.
Called when a user is authenticated but not authorized.
As defined by RFC 2616, the status code of the response should be 403 Forbidden.
The request header.
The messages for the current language.
The result to send to the client.
Can be mixed into the
HttpErrorHandler
object to define a global behaviour for unauthorized and forbidden endpoints.