TokenExchangeFlow

An authentication flow class that implements the Token Exchange Flow.

As an example, consider SSO for Native Apps where a client exchanges the ID and the Device Secret tokens to get access to the resource.

See the specification

Constructors

Link copied to clipboard
constructor()

Initializes a token exchange flow.

constructor(oidcConfiguration: OidcConfiguration)

Initializes a token exchange flow using the OidcConfiguration.

constructor(client: OAuth2Client)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun start(idToken: String, deviceSecret: String, audience: String = "api://default", scope: String = client.configuration.defaultScope): OAuth2ClientResult<Token>

Initiates the Token Exchange flow.