class AuthManager[F[_]] extends LazyLogger

Convenience functions to work with ADAL tokens. If tenant and authorityHostUrl are undefined, it is attempted to derive them from username (the demain part) and using a default authority hostname https://login.windows.net. If acquireTokenResource is undefined, dataUrl is tried in its place.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AuthManager
  2. LazyLogger
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AuthManager(info: ConnectionInfo)(implicit F: Async[F], PtoF: ~>[Promise, F])

Value Members

  1. val authority: Option[String]
  2. def getAuthContext(): AuthenticationContext

    Obtain an AuthenticatonContext.

    Obtain an AuthenticatonContext. Throw TokenRequestError on failure.

  3. def getToken(ctx: AuthenticationContext): F[TokenInfo]

    Get a token wrapped in an effect.

    Get a token wrapped in an effect. No retry is performed if the request fails.

  4. def getTokenWithRetry(ctx: AuthenticationContext, retryPolicy: (F[TokenInfo]) ⇒ F[TokenInfo]): F[TokenInfo]

    Get a token with a potential retry.

  5. val hasUsernameAndPassword: Boolean

    true if we should use username/password, false use client credentials.

  6. lazy val logger: Logger
    Definition Classes
    LazyLogger
  7. val tenant: UndefOr[Serializable]
  8. val tokenResource: UndefOr[String]
  9. def tokenStream(ctx: AuthenticationContext, retryPolicy: (F[TokenInfo]) ⇒ F[TokenInfo], calc: (TokenInfo) ⇒ FiniteDuration = AuthManager.defaultCalc)(implicit timer: Timer[F]): Stream[F, TokenInfo]

    Get a token stream.