Packages

package actions

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. class DefaultSecuredAction extends SecuredAction

    Default implementation of the SecuredAction.

  2. class DefaultSecuredErrorHandler extends SecuredErrorHandler with DefaultNotAuthenticatedErrorHandler with DefaultNotAuthorizedErrorHandler

    Default implementation of the SecuredErrorHandler.

  3. class DefaultSecuredRequest[E <: Env, B] extends WrappedRequest[B] with SecuredRequest[E, B]
  4. class DefaultSecuredRequestHandler extends SecuredRequestHandler

    Default implementation of the SecuredRequestHandler.

  5. class DefaultUnsecuredAction extends UnsecuredAction

    Default implementation of the UnsecuredAction.

  6. class DefaultUnsecuredErrorHandler extends UnsecuredErrorHandler with DefaultNotAuthorizedErrorHandler

    Default implementation of the UnsecuredErrorHandler.

  7. class DefaultUnsecuredRequestHandler extends UnsecuredRequestHandler

    Default implementation of the UnsecuredRequestHandler.

  8. class DefaultUserAwareAction extends UserAwareAction

    Default implementation of the UserAwareAction.

  9. class DefaultUserAwareRequest[E <: Env, B] extends WrappedRequest[B] with UserAwareRequest[E, B]
  10. class DefaultUserAwareRequestHandler extends UserAwareRequestHandler

    Default implementation of the UserAwareRequestHandler.

  11. trait SecuredAction extends AnyRef

    An action based on the SecuredRequestHandler.

  12. 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.

  13. trait SecuredActionComponents extends AnyRef

    Injection helper for secured action components

  14. class SecuredActionModule extends Module

    Play module for providing the secured action components.

  15. trait SecuredErrorHandler extends NotAuthenticatedErrorHandler with NotAuthorizedErrorHandler

    Error handler for secured actions.

  16. 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.

  17. 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.

  18. 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.

  19. 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.

  20. 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.

  21. 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.

  22. trait UnsecuredAction extends AnyRef

    An action based on the UnsecuredRequestHandler.

  23. 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.

  24. trait UnsecuredActionComponents extends AnyRef

    Injection helper for unsecured action components

  25. class UnsecuredActionModule extends Module

    Play module for providing the unsecured action components.

  26. trait UnsecuredErrorHandler extends NotAuthorizedErrorHandler

    Error handler for unsecured actions.

  27. 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.

  28. 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.

  29. 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.

  30. 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.

  31. trait UserAwareAction extends AnyRef

    An action based on the UserAwareRequestHandler.

  32. 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.

  33. trait UserAwareActionComponents extends AnyRef

    Injection helper for user-aware action components

  34. class UserAwareActionModule extends Module

    Play module for providing the user-aware action components.

  35. trait UserAwareRequest[E <: Env, +B] extends Request[B] with UserAwareRequestHeader[E]
  36. 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.

  37. 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.

  38. 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

  1. object SecuredRequest
  2. object UserAwareRequest

Ungrouped