BearerTokenProviderChain

Composite BearerTokenProvider that delegates to a chain of providers. When asked for identity, providers are consulted in the order given until one succeeds. If none of the providers in the chain can provide an identity then this class will throw an exception. The exception will include the providers tried in the message. Each individual exception is available as a suppressed exception.

Constructors

Link copied to clipboard
constructor(providers: List<BearerTokenProvider>)
constructor(vararg providers: BearerTokenProvider)

Functions

Link copied to clipboard
open suspend override fun resolve(attributes: <Error class: unknown class>): BearerToken

Request a BearerToken from the provider