A result which can transport a result as also additional data through the request handler process.
A result which can transport a result as also additional data through the request handler process.
The type of the data.
A Play Framework result.
Additional data to transport in the result.
A builder for building request handlers.
A builder for secured actions.
A builder for secured actions.
Requests are subject to authentication logic and, optionally, authorization. HTTP status codes 401 (Unauthorized) and 403 (Forbidden) will be returned when appropriate.
For reference see: RFC 2616, Understanding 403 Forbidden, 403 Forbidden vs 401 Unauthorized HTTP responses.
A request that only allows access if an identity is authorized.
A request that only allows access if an identity is authorized.
The type of the request body.
The identity implementation.
The authenticator implementation.
The current request.
Handles secured requests.
A request that adds the identity and the authenticator for the current call.
A request that adds the identity and the authenticator for the current call.
The type of the request body.
Some identity implementation if authentication was successful, None otherwise.
Some authenticator implementation if authentication was successful, None otherwise.
The current request.
Gets the environment needed to instantiate a Silhouette controller.
Gets the environment needed to instantiate a Silhouette controller.
The environment needed to instantiate a Silhouette controller.
A secured action.
A secured action.
If the user is not authenticated or not authorized, the request is forwarded to the com.mohiva.play.silhouette.api.Silhouette.onNotAuthenticated or the com.mohiva.play.silhouette.api.Silhouette.onNotAuthorized methods.
If these methods are not implemented, then the com.mohiva.play.silhouette.api.SecuredSettings.onNotAuthenticated or the com.mohiva.play.silhouette.api.SecuredSettings.onNotAuthorized methods will be called as fallback.
If the com.mohiva.play.silhouette.api.SecuredSettings trait isn't implemented, a default message will be displayed.
A secured request handler.
An action that adds the current user in the request if it's available.
An handler that adds the current user in the request if it's available.
Default exception handler for silhouette exceptions which translates an exception into the appropriate result.
Default exception handler for silhouette exceptions which translates an exception into the appropriate result.
Translates an ForbiddenException into a 403 Forbidden result and an UnauthorizedException into a 401 Unauthorized result.
The request header.
The result to send to the client based on the exception.
A named logger instance.
A named logger instance.
Implement this to return a result when the user is not authenticated.
Implement this to return a result when the 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.
Implement this to return a result when the user is authenticated but not authorized.
Implement this to return a result when the 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 result to send to the client.
Provides the mechanisms that can be used to protect endpoints and retrieve the current user if available.
The type of the identity.
The type of the authenticator.