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
Ordering
- Alphabetic
- By Inheritance
Inherited
- APIAuthAction
- PlainErrorResponses
- AbstractApiAuthAction
- ActionBuilder
- ActionFunction
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
andThen[Q[_]](other: ActionFunction[UserRequest, Q]): ActionBuilder[Q, AnyContent]
- Definition Classes
- ActionBuilder → ActionFunction
-
final
def
apply(block: ⇒ Result): Action[AnyContent]
- Definition Classes
- ActionBuilder
-
final
def
apply(block: (UserRequest[AnyContent]) ⇒ Result): Action[AnyContent]
- Definition Classes
- ActionBuilder
-
final
def
apply[A](bodyParser: BodyParser[A]): ActionBuilder[UserRequest, A]
- Definition Classes
- ActionBuilder
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
async[A](bodyParser: BodyParser[A])(block: (UserRequest[A]) ⇒ Future[Result]): Action[A]
- Definition Classes
- ActionBuilder
-
final
def
async(block: (UserRequest[AnyContent]) ⇒ Future[Result]): Action[AnyContent]
- Definition Classes
- ActionBuilder
-
final
def
async(block: ⇒ Future[Result]): Action[AnyContent]
- Definition Classes
- ActionBuilder
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
compose[B](other: ActionBuilder[Request, B]): ActionBuilder[UserRequest, B]
- Definition Classes
- ActionFunction
-
def
compose[Q[_]](other: ActionFunction[Q, Request]): ActionFunction[Q, UserRequest]
- Definition Classes
- ActionFunction
-
def
composeAction[A](action: Action[A]): Action[A]
- Attributes
- protected
- Definition Classes
- ActionBuilder
-
def
composeParser[A](bodyParser: BodyParser[A]): BodyParser[A]
- Attributes
- protected
- Definition Classes
- ActionBuilder
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
executionContext: ExecutionContext
- Attributes
- protected
- Definition Classes
- AbstractApiAuthAction → ActionFunction
-
val
expiredResult: play.api.mvc.Results.Status
- Definition Classes
- PlainErrorResponses
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
invalidCookieResult: play.api.mvc.Results.Status
- Definition Classes
- PlainErrorResponses
-
def
invokeBlock[A](request: Request[A], block: (UserRequest[A]) ⇒ Future[Result]): Future[Result]
- Definition Classes
- AbstractApiAuthAction → ActionFunction
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
notAuthenticatedResult: play.api.mvc.Results.Status
- Definition Classes
- PlainErrorResponses
-
val
notAuthorizedResult: play.api.mvc.Results.Status
- Definition Classes
- PlainErrorResponses
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
parser: BodyParser[AnyContent]
- Definition Classes
- AbstractApiAuthAction → ActionBuilder
-
def
responseWithSystemCookie(response: Future[Result], authedUser: AuthenticatedUser): Future[Result]
- Definition Classes
- AbstractApiAuthAction
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )