start
suspend fun start(idToken: String, deviceSecret: String, audience: String = "api://default", scope: List<String>): OAuth2ClientResult<Token>
Initiates the Token Exchange flow.
Parameters
idToken
the id token for the user to create a new token for.
deviceSecret
the Token.deviceSecret obtained via another authentication flow.
audience
the audience of the authorization server. Defaults to api://default.
scope
the scopes to request during sign in.
suspend fun start(idToken: String, deviceSecret: String, audience: String = "api://default", scope: String = client.configuration.defaultScope): OAuth2ClientResult<Token>
Deprecated
Use the overload accepting scope as a List<String> instead.
Replace with
start(idToken, deviceSecret, audience, scope.split(" "))Content copied to clipboard
Initiates the Token Exchange flow.
Parameters
idToken
the id token for the user to create a new token for.
deviceSecret
the Token.deviceSecret obtained via another authentication flow.
audience
the audience of the authorization server. Defaults to api://default.
scope
the scopes to request during sign in. Defaults to the configured client.