com.mle.play.controllers

BaseSecurity

Related Doc: package controllers

trait BaseSecurity extends Log

Linear Supertypes
Log, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BaseSecurity
  2. Log
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
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 AuthAction(f: (AuthRequest[AnyContent]) ⇒ Result): EssentialAction

  5. def AuthActionAsync(f: (AuthRequest[AnyContent]) ⇒ Future[Result]): EssentialAction

  6. def Authenticated(f: ⇒ EssentialAction): EssentialAction

  7. def Authenticated(f: (AuthResult) ⇒ EssentialAction): EssentialAction

  8. def AuthenticatedAsync[A](authFunction: (RequestHeader) ⇒ Future[A], onUnauthorized: (RequestHeader) ⇒ Result)(action: (A) ⇒ EssentialAction): EssentialAction

  9. def AuthenticatedAsync2[A](authFunction: (RequestHeader) ⇒ Future[Option[A]], onUnauthorized: (RequestHeader) ⇒ Result)(action: (A) ⇒ EssentialAction): EssentialAction

  10. def AuthenticatedLogged(f: ⇒ EssentialAction): EssentialAction

  11. def AuthenticatedLogged(f: (AuthResult) ⇒ EssentialAction): EssentialAction

  12. def Logged(action: EssentialAction): EssentialAction

  13. def Logged(user: AuthResult, f: (AuthResult) ⇒ EssentialAction): EssentialAction

    Logs authenticated requests.

  14. def LoggedSecureAction[U](authFunction: (RequestHeader) ⇒ Option[U])(authAction: (U) ⇒ EssentialAction): EssentialAction

    U

    type of user

    authFunction
    authAction
    returns

  15. def LoggedSecureActionAsync[U](authFunction: (RequestHeader) ⇒ Future[U])(authAction: (U) ⇒ EssentialAction): EssentialAction

  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. def authenticate(implicit request: RequestHeader): Option[AuthResult]

    Retrieves the authenticated username from the request.

    Retrieves the authenticated username from the request.

    Attempts to read the "username" session variable, but if no such thing exists, attempts to authenticate based on the the HTTP Authorization header, finally if that also fails, authenticates based on credentials in the query string.

    returns

    the authentication result wrapped in an scala.Option if successfully authenticated, scala.None otherwise

  18. def authenticateFromHeader(implicit request: RequestHeader): Option[String]

  19. def authenticateFromQueryString(implicit request: RequestHeader): Option[String]

    Authenticates based on the "u" and "p" query string parameters.

    Authenticates based on the "u" and "p" query string parameters.

    request

    request

    returns

    the username, if successfully authenticated

  20. def authenticateFromSession(implicit request: RequestHeader): Option[String]

  21. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  27. def headerAuth(f: (BasicCredentials) ⇒ Boolean)(implicit request: RequestHeader): Option[String]

    Basic HTTP authentication.

    Basic HTTP authentication.

    The "Authorization" request header should be like: "Basic base64(username:password)", where base64(x) means x base64-encoded.

    f

    credentials verifier: returns true on success, false otherwise

    request

    request from which the Authorization header is validated

    returns

    the username wrapped in an Option if successfully authenticated, None otherwise

  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. def lift(user: String): AuthResult

    Attributes
    protected
  30. val log: Logger

    Attributes
    protected
    Definition Classes
    Log
  31. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  34. def onUnauthorized(implicit req: RequestHeader): Result

    Called when an unauthorized request has been made.

    Called when an unauthorized request has been made. Also called when a failed authentication attempt is made.

    Returns HTTP 401 by default; override to handle unauthorized requests in a more app-specific manner.

    req

    header of request which failed authentication

    returns

    "auth failed" result

    Attributes
    protected
  35. def saveFiles(request: Request[MultipartFormData[TemporaryFile]]): Seq[Path]

    Attributes
    protected
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. val uploadDir: Path

  39. def validateCredentials(creds: BasicCredentials): Boolean

    Override if you intend to use password authentication.

    Override if you intend to use password authentication.

    returns

    True if the credentials are valid; false otherwise. False by default.

  40. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Log

Inherited from AnyRef

Inherited from Any

Ungrouped