com.mohiva.play.silhouette.api.Silhouette

SecuredActionBuilder

Related Doc: package Silhouette

class SecuredActionBuilder extends ActionBuilder[SecuredRequest]

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.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SecuredActionBuilder
  2. ActionBuilder
  3. ActionFunction
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SecuredActionBuilder(authorize: Option[Authorization[I]] = None)

    authorize

    An Authorize object that checks if the user is authorized to invoke the action.y

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def andThen[Q[_]](other: ActionFunction[SecuredRequest, Q]): ActionBuilder[Q]

    Definition Classes
    ActionBuilder → ActionFunction
  5. final def apply(block: ⇒ Result): Action[AnyContent]

    Definition Classes
    ActionBuilder
  6. final def apply(block: (SecuredRequest[AnyContent]) ⇒ Result): Action[AnyContent]

    Definition Classes
    ActionBuilder
  7. final def apply[A](bodyParser: BodyParser[A])(block: (SecuredRequest[A]) ⇒ Result): Action[A]

    Definition Classes
    ActionBuilder
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. final def async[A](bodyParser: BodyParser[A])(block: (SecuredRequest[A]) ⇒ Future[Result]): Action[A]

    Definition Classes
    ActionBuilder
  10. final def async(block: (SecuredRequest[AnyContent]) ⇒ Future[Result]): Action[AnyContent]

    Definition Classes
    ActionBuilder
  11. final def async(block: ⇒ Future[Result]): Action[AnyContent]

    Definition Classes
    ActionBuilder
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def compose(other: ActionBuilder[Request]): ActionBuilder[SecuredRequest]

    Definition Classes
    ActionFunction
  14. def compose[Q[_]](other: ActionFunction[Q, Request]): ActionFunction[Q, SecuredRequest]

    Definition Classes
    ActionFunction
  15. def composeAction[A](action: Action[A]): Action[A]

    Attributes
    protected
    Definition Classes
    ActionBuilder
  16. def composeParser[A](bodyParser: BodyParser[A]): BodyParser[A]

    Attributes
    protected
    Definition Classes
    ActionBuilder
  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  19. def executionContext: ExecutionContext

    Attributes
    protected
    Definition Classes
    ActionFunction
  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. def invokeBlock[B](request: Request[B], block: (SecuredRequest[B]) ⇒ Future[Result]): Future[Result]

    Invokes the block.

    Invokes the block.

    B

    The type of the request body.

    request

    The current request.

    block

    The block of code to invoke.

    returns

    A handler result.

    Definition Classes
    SecuredActionBuilder → ActionFunction
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ActionBuilder[SecuredRequest]

Inherited from AnyRef

Inherited from Any

Ungrouped