Class

de.choffmeister.auth.akkahttp

Authenticator

Related Doc: package akkahttp

Permalink

class Authenticator[Auth] extends SecurityDirectives

Linear Supertypes
SecurityDirectives, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Authenticator
  2. SecurityDirectives
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Authenticator(realm: String, bearerTokenSecret: Array[Byte], fromUsernamePassword: (String, String) ⇒ Future[Option[Auth]], fromBearerToken: (JsonWebToken) ⇒ Future[Option[Auth]])(implicit executor: ExecutionContext)

    Permalink

Type Members

  1. type AsyncAuthenticator[T] = (Credentials) ⇒ Future[Option[T]]

    Permalink
    Definition Classes
    SecurityDirectives
  2. type AsyncAuthenticatorPF[T] = PartialFunction[Credentials, Future[T]]

    Permalink
    Definition Classes
    SecurityDirectives
  3. type AuthenticationResult[+T] = Either[HttpChallenge, T]

    Permalink
    Definition Classes
    SecurityDirectives
  4. type Authenticator[T] = (Credentials) ⇒ Option[T]

    Permalink
    Definition Classes
    SecurityDirectives
  5. type AuthenticatorPF[T] = PartialFunction[Credentials, T]

    Permalink
    Definition Classes
    SecurityDirectives

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. def apply(): Directive1[Auth]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def authenticateBasic[T](realm: String, authenticator: Authenticator[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  7. def authenticateBasicAsync[T](realm: String, authenticator: AsyncAuthenticator[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  8. def authenticateBasicPF[T](realm: String, authenticator: AuthenticatorPF[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  9. def authenticateBasicPFAsync[T](realm: String, authenticator: AsyncAuthenticatorPF[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  10. def authenticateOAuth2[T](realm: String, authenticator: Authenticator[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  11. def authenticateOAuth2Async[T](realm: String, authenticator: AsyncAuthenticator[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  12. def authenticateOAuth2PF[T](realm: String, authenticator: AuthenticatorPF[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  13. def authenticateOAuth2PFAsync[T](realm: String, authenticator: AsyncAuthenticatorPF[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  14. def authenticateOrRejectWithChallenge[C <: HttpCredentials, T](authenticator: (Option[C]) ⇒ Future[AuthenticationResult[T]])(implicit arg0: ClassTag[C]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  15. def authenticateOrRejectWithChallenge[T](authenticator: (Option[HttpCredentials]) ⇒ Future[AuthenticationResult[T]]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  16. def authorize(check: (RequestContext) ⇒ Boolean): Directive0

    Permalink
    Definition Classes
    SecurityDirectives
  17. def authorize(check: ⇒ Boolean): Directive0

    Permalink
    Definition Classes
    SecurityDirectives
  18. def basic(minDelay: Option[FiniteDuration] = None): AuthenticationDirective[Auth]

    Permalink
  19. def bearerToken(acceptExpired: Boolean = false): AuthenticationDirective[Auth]

    Permalink
  20. def challengeFor(realm: String): HttpChallenge

    Permalink
    Definition Classes
    SecurityDirectives
  21. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. def extractCredentials: Directive1[Option[HttpCredentials]]

    Permalink
    Definition Classes
    SecurityDirectives
  25. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  32. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  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 SecurityDirectives

Inherited from AnyRef

Inherited from Any

Ungrouped