Trait

org.genivi.webserver.controllers

AuthConfigImpl

Related Doc: package controllers

Permalink

trait AuthConfigImpl extends AuthConfig

Trait for authentication implicits.

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

Type Members

  1. type Authority = Authentication.Role.Value

    Permalink

    A type that is defined by every action for authorization.

    A type that is defined by every action for authorization. This sample uses the following trait:

    sealed trait Role case object Administrator extends Role case object NormalUser extends Role

    Definition Classes
    AuthConfigImpl → 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
    AuthConfigImpl → AuthConfig
  3. type User = Account

    Permalink

    A type that represents a user in your application.

    A type that represents a user in your application. User, Account and so on.

    Definition Classes
    AuthConfigImpl → AuthConfig

Abstract Value Members

  1. abstract 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. You can alter the procedure to suit your application.

    Definition Classes
    AuthConfigImpl → AuthConfig

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 then redirct them as follows:

    If the user is not logged in and tries to access a protected resource then redirct them as follows:

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

    Permalink

    If authorization failed (usually incorrect password) redirect the user as follows:

    If authorization failed (usually incorrect password) redirect the user as follows:

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

    Permalink

    A function that determines what Authority a user has.

    A function that determines what Authority a user has. You should alter this procedure to suit your application.

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AuthConfig
  15. 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
    AuthConfigImpl → AuthConfig
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. 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
    AuthConfigImpl → AuthConfig
  18. 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
    AuthConfigImpl → AuthConfig
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. val sessionTimeoutInSeconds: Int

    Permalink

    The session timeout in seconds

    The session timeout in seconds

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

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

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

    Permalink

    (Optional) You can custom SessionID Token handler.

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

    Definition Classes
    AuthConfigImpl → AuthConfig
  26. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. 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