SessionTokenFlow

Implements the Session Token authentication flow.

Exchanges a session token (obtained from the Okta legacy Authn API) for OAuth2 tokens by:

  1. Building an authorization URL with the session token as an extra parameter.

  2. Making a GET request to the authorization URL and capturing the redirect Location header.

  3. Exchanging the authorization code in the redirect URI for tokens.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun start(sessionToken: String, redirectUrl: String, extraRequestParameters: Map<String, String> = emptyMap(), scope: String = "openid profile email offline_access"): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for TokenInfo>

Initiates the session token flow and returns a TokenInfo on success.