package actions
- Alphabetic
- Public
- Protected
Type Members
- class DefaultSecuredAction extends SecuredAction
Default implementation of the SecuredAction.
- class DefaultSecuredErrorHandler extends SecuredErrorHandler with DefaultNotAuthenticatedErrorHandler with DefaultNotAuthorizedErrorHandler
Default implementation of the SecuredErrorHandler.
- class DefaultSecuredRequest[E <: Env, B] extends WrappedRequest[B] with SecuredRequest[E, B]
- class DefaultSecuredRequestHandler extends SecuredRequestHandler
Default implementation of the SecuredRequestHandler.
- class DefaultUnsecuredAction extends UnsecuredAction
Default implementation of the UnsecuredAction.
- class DefaultUnsecuredErrorHandler extends UnsecuredErrorHandler with DefaultNotAuthorizedErrorHandler
Default implementation of the UnsecuredErrorHandler.
- class DefaultUnsecuredRequestHandler extends UnsecuredRequestHandler
Default implementation of the UnsecuredRequestHandler.
- class DefaultUserAwareAction extends UserAwareAction
Default implementation of the UserAwareAction.
- class DefaultUserAwareRequest[E <: Env, B] extends WrappedRequest[B] with UserAwareRequest[E, B]
- class DefaultUserAwareRequestHandler extends UserAwareRequestHandler
Default implementation of the UserAwareRequestHandler.
- trait SecuredAction extends AnyRef
An action based on the SecuredRequestHandler.
- final case class SecuredActionBuilder[E <: Env, P](requestHandler: SecuredRequestHandlerBuilder[E], parser: BodyParser[P]) extends ActionBuilder[[B]SecuredRequest[E, B], P] with Product with Serializable
Action builder implementation to provide the foundation for secured actions.
Action builder implementation to provide the foundation for secured actions.
- E
The type of the environment.
- P
The type of the request body.
- requestHandler
The request handler instance.
- parser
The body parser.
- trait SecuredActionComponents extends AnyRef
Injection helper for secured action components
- class SecuredActionModule extends Module
Play module for providing the secured action components.
- trait SecuredErrorHandler extends NotAuthenticatedErrorHandler with NotAuthorizedErrorHandler
Error handler for secured actions.
- trait SecuredErrorHandlerComponents extends AnyRef
Injection helper for secured error handler component.
Injection helper for secured error handler component.
We provide an extra component so that it can be easily replaced with a custom implementation without to declare bindings for the other secured action component.
- class SecuredErrorHandlerModule extends Module
Play module to provide the secured error handler component.
Play module to provide the secured error handler component.
We provide an extra module so that it can be easily replaced with a custom implementation without to declare bindings for the other secured action module.
- trait SecuredRequest[E <: Env, +B] extends Request[B] with SecuredRequestHeader[E]
A request that only allows access if an identity is authenticated and authorized.
A request that only allows access if an identity is authenticated and authorized.
- E
The type of the environment.
- B
The type of the request body.
- trait SecuredRequestHandler extends AnyRef
A secured request handler.
A secured request handler.
A handler which intercepts requests and checks if there is an authenticated user. If there is one, the execution continues and the enclosed code is invoked.
If the user is not authenticated or not authorized, the request is forwarded to the play.silhouette.api.actions.SecuredErrorHandler.onNotAuthenticated or the play.silhouette.api.actions.SecuredErrorHandler.onNotAuthorized methods.
- final case class SecuredRequestHandlerBuilder[E <: Env](environment: Environment[E], errorHandler: SecuredErrorHandler, authorization: Option[Authorization[E.I, E.A]]) extends RequestHandlerBuilder[E, [B]SecuredRequest[E, B]] with Product with Serializable
Request handler builder implementation to provide the foundation for secured request handlers.
Request handler builder implementation to provide the foundation for secured request handlers.
- E
The type of the environment.
- environment
The environment instance to handle the request.
- errorHandler
The instance of the secured error handler.
- authorization
Maybe an authorization instance.
- trait SecuredRequestHeader[E <: Env] extends RequestHeader
A request header that only allows access if an identity is authenticated and authorized.
A request header that only allows access if an identity is authenticated and authorized.
- E
The type of the environment.
- trait UnsecuredAction extends AnyRef
An action based on the UnsecuredRequestHandler.
- final case class UnsecuredActionBuilder[E <: Env, P](requestHandler: UnsecuredRequestHandlerBuilder[E], parser: BodyParser[P]) extends ActionBuilder[Request, P] with Product with Serializable
Action builder implementation to provide the foundation for unsecured actions.
Action builder implementation to provide the foundation for unsecured actions.
- E
The type of the environment.
- P
The type of the request body.
- requestHandler
The request handler instance.
- parser
The body parser.
- trait UnsecuredActionComponents extends AnyRef
Injection helper for unsecured action components
- class UnsecuredActionModule extends Module
Play module for providing the unsecured action components.
- trait UnsecuredErrorHandler extends NotAuthorizedErrorHandler
Error handler for unsecured actions.
- trait UnsecuredErrorHandlerComponents extends AnyRef
Injection helper for unsecured error handler component.
Injection helper for unsecured error handler component.
We provide an extra component so that it can be easily replaced with a custom implementation without to declare bindings for the other secured action component.
- class UnsecuredErrorHandlerModule extends Module
Play module to provide the unsecured error handler component.
Play module to provide the unsecured error handler component.
We provide an extra module so that it can be easily replaced with a custom implementation without to declare bindings for the other unsecured action module.
- trait UnsecuredRequestHandler extends AnyRef
An unsecured request handler.
An unsecured request handler.
A handler which intercepts requests and checks if there is no authenticated user. If there is none, the execution continues and the enclosed code is invoked.
If the user is authenticated, the request is forwarded to the play.silhouette.api.actions.UnsecuredErrorHandler.onNotAuthorized method.
- final case class UnsecuredRequestHandlerBuilder[E <: Env](environment: Environment[E], errorHandler: UnsecuredErrorHandler) extends RequestHandlerBuilder[E, Request] with Product with Serializable
Request handler builder implementation to provide the foundation for unsecured request handlers.
Request handler builder implementation to provide the foundation for unsecured request handlers.
- E
The type of the environment.
- environment
The environment instance to handle the request.
- errorHandler
The instance of the unsecured error handler.
- trait UserAwareAction extends AnyRef
An action based on the UserAwareRequestHandler.
- final case class UserAwareActionBuilder[E <: Env, P](requestHandler: UserAwareRequestHandlerBuilder[E], parser: BodyParser[P]) extends ActionBuilder[[B]UserAwareRequest[E, B], P] with Product with Serializable
Action builder implementation to provide the foundation for user-aware actions.
Action builder implementation to provide the foundation for user-aware actions.
- E
The type of the environment.
- P
The type of the request body.
- requestHandler
The request handler instance.
- parser
The body parser.
- trait UserAwareActionComponents extends AnyRef
Injection helper for user-aware action components
- class UserAwareActionModule extends Module
Play module for providing the user-aware action components.
- trait UserAwareRequest[E <: Env, +B] extends Request[B] with UserAwareRequestHeader[E]
- trait UserAwareRequestHandler extends AnyRef
A user-aware request handler.
A user-aware request handler.
A handler that can be used for endpoints that need to know if there is a current user but can be executed even if there isn't one.
- final case class UserAwareRequestHandlerBuilder[E <: Env](environment: Environment[E]) extends RequestHandlerBuilder[E, [B]UserAwareRequest[E, B]] with Product with Serializable
Request handler builder implementation to provide the foundation for user-aware request handlers.
Request handler builder implementation to provide the foundation for user-aware request handlers.
- E
The type of the environment.
- environment
The environment instance to handle the request.
- trait UserAwareRequestHeader[E <: Env] extends RequestHeader
A request that adds maybe the identity and maybe the authenticator for the current call.
A request that adds maybe the identity and maybe the authenticator for the current call.
- E
The type of the environment.
Value Members
- object SecuredRequest
- object UserAwareRequest