Packages

object APIAuthAction extends AbstractApiAuthAction with PlainErrorResponses

Action that ensures the user is logged in and validated.

This action is for API / XHR type requests where the user can't be sent to the auth provider for auth. In the cases where the auth is not valid response codes are sent to the requesting app and the javascript that initiated the request should handle these appropriately

If the user is not authed then a 401 response is sent, if the auth has expired then a 419 response is sent, if the user is authed but not allowed to perform the action a 403 is sent

If the user is authed or has an expiry extension, a 200 is sent

Linear Supertypes
PlainErrorResponses, AbstractApiAuthAction, ActionBuilder[UserRequest, AnyContent], ActionFunction[Request, UserRequest], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. APIAuthAction
  2. PlainErrorResponses
  3. AbstractApiAuthAction
  4. ActionBuilder
  5. ActionFunction
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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[UserRequest, Q]): ActionBuilder[Q, AnyContent]
    Definition Classes
    ActionBuilder → ActionFunction
  5. final def apply(block: ⇒ Result): Action[AnyContent]
    Definition Classes
    ActionBuilder
  6. final def apply(block: (UserRequest[AnyContent]) ⇒ Result): Action[AnyContent]
    Definition Classes
    ActionBuilder
  7. final def apply[A](bodyParser: BodyParser[A]): ActionBuilder[UserRequest, A]
    Definition Classes
    ActionBuilder
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. final def async[A](bodyParser: BodyParser[A])(block: (UserRequest[A]) ⇒ Future[Result]): Action[A]
    Definition Classes
    ActionBuilder
  10. final def async(block: (UserRequest[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
    @native() @throws( ... )
  13. def compose[B](other: ActionBuilder[Request, B]): ActionBuilder[UserRequest, B]
    Definition Classes
    ActionFunction
  14. def compose[Q[_]](other: ActionFunction[Q, Request]): ActionFunction[Q, UserRequest]
    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
    AbstractApiAuthAction → ActionFunction
  20. val expiredResult: play.api.mvc.Results.Status
    Definition Classes
    PlainErrorResponses
  21. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. val invalidCookieResult: play.api.mvc.Results.Status
    Definition Classes
    PlainErrorResponses
  25. def invokeBlock[A](request: Request[A], block: (UserRequest[A]) ⇒ Future[Result]): Future[Result]
    Definition Classes
    AbstractApiAuthAction → ActionFunction
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. val notAuthenticatedResult: play.api.mvc.Results.Status
    Definition Classes
    PlainErrorResponses
  29. val notAuthorizedResult: play.api.mvc.Results.Status
    Definition Classes
    PlainErrorResponses
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. def parser: BodyParser[AnyContent]
    Definition Classes
    AbstractApiAuthAction → ActionBuilder
  33. def responseWithSystemCookie(response: Future[Result], authedUser: AuthenticatedUser): Future[Result]
    Definition Classes
    AbstractApiAuthAction
  34. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from PlainErrorResponses

Inherited from AbstractApiAuthAction

Inherited from ActionBuilder[UserRequest, AnyContent]

Inherited from ActionFunction[Request, UserRequest]

Inherited from AnyRef

Inherited from Any

Ungrouped