Class/Object

com.malliina.play.controllers

BaseSecurity

Related Docs: object BaseSecurity | package controllers

Permalink

class BaseSecurity extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseSecurity
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BaseSecurity(mat: Materializer, auth: AuthBundle[Username])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def authAction(f: (FullRequest) ⇒ Result): EssentialAction

    Permalink
  6. def authActionAsync(f: (CookiedRequest[AnyContent, AuthedRequest]) ⇒ Future[Result]): EssentialAction

    Permalink
  7. def authenticate(rh: RequestHeader): Future[Either[AuthFailure, AuthedRequest]]

    Permalink

    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

  8. def authenticated(f: (AuthedRequest) ⇒ EssentialAction): EssentialAction

    Permalink
  9. def authenticated(f: ⇒ EssentialAction): EssentialAction

    Permalink
  10. def authenticatedAsync[A](auth: (RequestHeader) ⇒ Future[Either[AuthFailure, A]], onUnauthorized: (AuthFailure) ⇒ Result)(action: (A) ⇒ EssentialAction): EssentialAction

    Permalink

    Async version of Security.Authenticated.

    Async version of Security.Authenticated.

    A

    type of user+request

    auth

    auth function

    onUnauthorized

    callback if auth fails

    action

    authenticated action

    returns

    an authenticated action

  11. def authenticatedLogged(f: ⇒ EssentialAction): EssentialAction

    Permalink
  12. def authenticatedLogged(f: (AuthedRequest) ⇒ EssentialAction): EssentialAction

    Permalink
  13. val authenticator: Authenticator[AuthedRequest]

    Permalink
  14. def checkOrElse[T, U >: T](f: Future[T], orElse: ⇒ Future[U], check: (T) ⇒ Boolean): Future[U]

    Permalink
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. implicit val ec: ExecutionContextExecutor

    Permalink
  17. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def lift(user: Username, request: RequestHeader): AuthedRequest

    Permalink
    Attributes
    protected
  24. def logged(action: EssentialAction): EssentialAction

    Permalink
  25. def logged(user: AuthedRequest, f: (AuthedRequest) ⇒ EssentialAction): EssentialAction

    Permalink

    Logs authenticated requests.

  26. val mat: Materializer

    Permalink
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def onUnauthorized(failure: AuthFailure): Result

    Permalink

    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.

    failure

    header auth failure, including request headers

    returns

    "auth failed" result

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

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. def validateCredentials(creds: BasicCredentials): Future[Boolean]

    Permalink

    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.

  34. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped