TokenExchangeFlow

class 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

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 = oidcClient.configuration.defaultScope): OidcClientResult<Token>

Initiates the Token Exchange flow.