object AuthenticatedBuilder
- Source
- Security.scala
- Alphabetic
- By Inheritance
- AuthenticatedBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply[U](userinfo: (RequestHeader) ⇒ Option[U], defaultParser: BodyParser[AnyContent], onUnauthorized: (RequestHeader) ⇒ Result = DefaultUnauthorized)(implicit ec: ExecutionContext): AuthenticatedBuilder[U]
Create an authenticated builder
Create an authenticated builder
- userinfo
The function that looks up the user info.
- onUnauthorized
The function to get the result for when no authenticated user can be found.
Deprecated Value Members
-
def
apply(defaultParser: BodyParser[AnyContent])(implicit ec: ExecutionContext): AuthenticatedBuilder[String]
Simple authenticated action builder that looks up the username from the session
Simple authenticated action builder that looks up the username from the session
- Annotations
- @deprecated
- Deprecated
(Since version 2.6.0) Use AuthenticatedBuilder(RequestHeader => Option[String], BodyParser[AnyContent]); the first argument gets the username