Trait

org.ada.web.security

AdaAuthConfig

Related Doc: package security

Permalink

trait AdaAuthConfig extends AuthConfig

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

Type Members

  1. type Authority = Role

    Permalink

    Play2-auth specific.

    Play2-auth specific. A type that is defined by every action for authorization. Set to deadbolt's Role class.

    Definition Classes
    AdaAuthConfig → AuthConfig
  2. type Id = String

    Permalink

    A type that is used to identify a user.

    A type that is used to identify a user. String, Int, Long and so on.

    Definition Classes
    AdaAuthConfig → AuthConfig
  3. type User = server.models.User

    Permalink

    Play2-auth specific.

    Play2-auth specific. Type definition for User object. Set to AbstractUser, a class extending deadbolt's Subject.

    Definition Classes
    AdaAuthConfig → AuthConfig

Abstract Value Members

  1. abstract def userManager: UserManager

    Permalink

Concrete 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 authenticationFailed(request: RequestHeader)(implicit ctx: ExecutionContext): Future[Result]

    Permalink

    If the user is not logged in and tries to access a protected resource, redirect to login page

    If the user is not logged in and tries to access a protected resource, redirect to login page

    Definition Classes
    AdaAuthConfig → AuthConfig
  6. def authorizationFailed(request: RequestHeader, user: User, authority: Option[Authority])(implicit context: ExecutionContext): Future[Result]

    Permalink

    Only used, if play2-auth authorization is required.

    Only used, if play2-auth authorization is required. However, Play2-auth authorization is never used.

    Shows error message on authorization failure.

    Definition Classes
    AdaAuthConfig → AuthConfig
  7. def authorize(user: User, authority: Authority)(implicit ctx: ExecutionContext): Future[Boolean]

    Permalink

    Unused.

    Unused. This is only used, if play2-auth authorization is required. However, Play2-auth authorization is never used.

    Maps users to permissions.

    Definition Classes
    AdaAuthConfig → AuthConfig
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def currentUser(request: Request[_]): Future[Option[User]]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. lazy val idContainer: AsyncIdContainer[Id]

    Permalink
    Definition Classes
    AuthConfig
  16. val idTag: ClassTag[Id]

    Permalink

    A ClassTag is used to retrieve an id from the Cache API.

    A ClassTag is used to retrieve an id from the Cache API. Use something like this:

    Definition Classes
    AdaAuthConfig → AuthConfig
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def loginSucceeded(request: RequestHeader)(implicit ctx: ExecutionContext): Future[Result]

    Permalink

    Where to redirect the user after a successful login.

    Where to redirect the user after a successful login.

    Definition Classes
    AdaAuthConfig → AuthConfig
  19. def logoutSucceeded(request: RequestHeader)(implicit ctx: ExecutionContext): Future[Result]

    Permalink

    Where to redirect the user after logging out

    Where to redirect the user after logging out

    Definition Classes
    AdaAuthConfig → AuthConfig
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def resolveUser(id: Id)(implicit ctx: ExecutionContext): Future[Option[User]]

    Permalink

    A function that returns a User object from an Id.

    A function that returns a User object from an Id. Retrieves user from Account class.

    Definition Classes
    AdaAuthConfig → AuthConfig
  24. val sessionTimeoutInSeconds: Int

    Permalink

    The session timeout in seconds

    The session timeout in seconds

    Definition Classes
    AdaAuthConfig → AuthConfig
  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. lazy val tokenAccessor: CookieTokenAccessor

    Permalink

    (Optional) You can custom SessionID Token handler.

    (Optional) You can custom SessionID Token handler. Default implementation use Cookie.

    Definition Classes
    AdaAuthConfig → AuthConfig
  28. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. final lazy val cookieDomainOption: Option[String]

    Permalink
    Definition Classes
    AuthConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) it will be deleted since 0.14.0. use CookieTokenAccessor constructor

  2. final lazy val cookieHttpOnlyOption: Boolean

    Permalink
    Definition Classes
    AuthConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) it will be deleted since 0.14.0. use CookieTokenAccessor constructor

  3. final lazy val cookieName: String

    Permalink
    Definition Classes
    AuthConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) it will be deleted since 0.14.x. use CookieTokenAccessor constructor

  4. final lazy val cookiePathOption: String

    Permalink
    Definition Classes
    AuthConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) it will be deleted since 0.14.0. use CookieTokenAccessor constructor

  5. final lazy val cookieSecureOption: Boolean

    Permalink
    Definition Classes
    AuthConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) it will be deleted since 0.14.0. use CookieTokenAccessor constructor

  6. final lazy val isTransientCookie: Boolean

    Permalink
    Definition Classes
    AuthConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) it will be deleted since 0.14.0. use CookieTokenAccessor constructor

Inherited from AuthConfig

Inherited from AnyRef

Inherited from Any

Ungrouped