Instance Constructors
-
new
AuthAction(authConfig: GoogleAuthConfig, loginTarget: Call, bodyParser: BodyParser[A])(implicit executionContext: ExecutionContext)
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
andThen[Q[_]](other: ActionFunction[UserIdentityRequest, Q]): ActionBuilder[Q, A]
-
final
def
apply(block: ⇒ Result): Action[AnyContent]
-
final
def
apply(block: (UserIdentityRequest[A]) ⇒ Result): Action[A]
-
final
def
apply[A](bodyParser: BodyParser[A]): ActionBuilder[UserIdentityRequest, A]
-
final
def
asInstanceOf[T0]: T0
-
final
def
async[A](bodyParser: BodyParser[A])(block: (UserIdentityRequest[A]) ⇒ Future[Result]): Action[A]
-
final
def
async(block: (UserIdentityRequest[A]) ⇒ Future[Result]): Action[A]
-
final
def
async(block: ⇒ Future[Result]): Action[AnyContent]
-
-
def
clone(): AnyRef
-
def
compose[B](other: ActionBuilder[Request, B]): ActionBuilder[UserIdentityRequest, B]
-
def
compose[Q[_]](other: ActionFunction[Q, Request]): ActionFunction[Q, UserIdentityRequest]
-
def
composeAction[A](action: Action[A]): Action[A]
-
def
composeParser[A](bodyParser: BodyParser[A]): BodyParser[A]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
implicit
val
executionContext: ExecutionContext
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
invokeBlock[A](request: Request[A], block: (UserIdentityRequest[A]) ⇒ Future[Result]): Future[Result]
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
parser: BodyParser[A]
-
def
refine[A](request: Request[A]): Future[Either[Result, UserIdentityRequest[A]]]
-
def
sendForAuth[A](request: RequestHeader)(implicit ec: ExecutionContext): Result
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
userIdentity(request: RequestHeader): Option[UserIdentity]
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
This action ensures that the user is authenticated and their token is valid. Is a user is not logged in or their token has expired then they will be authenticated.
The AuthenticatedRequest will always have an identity.