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.
- Alphabetic
- By Inheritance
- AuthManager
- LazyLogger
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AuthManager(info: ConnectionInfo)(implicit F: Async[F], PtoF: ~>[Promise, F])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val authority: Option[String]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getAuthContext(): AuthenticationContext
Obtain an AuthenticatonContext.
Obtain an AuthenticatonContext. Throw TokenRequestError on failure.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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.
-
def
getTokenWithRetry(ctx: AuthenticationContext, retryPolicy: (F[TokenInfo]) ⇒ F[TokenInfo]): F[TokenInfo]
Get a token with a potential retry.
-
val
hasUsernameAndPassword: Boolean
true if we should use username/password, false use client credentials.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
logger: Logger
- Definition Classes
- LazyLogger
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tenant: UndefOr[Serializable]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- val tokenResource: UndefOr[String]
-
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.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )