Class/Object

com.malliina.play.controllers

BaseSecurity

Related Docs: object BaseSecurity | package controllers

Permalink

class BaseSecurity[A <: AuthInfo] extends AnyRef

A

type of authenticated user

Linear Supertypes
AnyRef, Any
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(actions: ActionBuilder[Request, AnyContent], auth: AuthBundle[A], mat: Materializer)

    Permalink

    actions

    action builder

    auth

    authenticator

    mat

    materilalizer

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: (A) ⇒ Result): EssentialAction

    Permalink
  6. def authActionAsync(f: (A) ⇒ Future[Result]): EssentialAction

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

    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: (A) ⇒ EssentialAction): EssentialAction

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

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

    Permalink

    Async version of Security.Authenticated.

    Async version of Security.Authenticated.

    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: (A) ⇒ EssentialAction): EssentialAction

    Permalink
  13. def clone(): AnyRef

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  21. def logAuth(user: A, rh: RequestHeader): Unit

    Permalink
  22. def logged(action: EssentialAction): EssentialAction

    Permalink
  23. def logged(user: A, f: (A) ⇒ EssentialAction): EssentialAction

    Permalink

    Logs authenticated requests.

  24. val mat: Materializer

    Permalink

    materilalizer

  25. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  28. 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
  29. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped