AuthorizationCodeFlow

Encapsulates the behavior required to authenticate using the OIDC Authorization Code flow with PKCE.

See Authorization Code Flow documentation

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Thrown by resume when no authorization code is present in the redirect URI.

Link copied to clipboard

Thrown by resume when the redirect URI scheme does not match the configured redirect URL.

Link copied to clipboard
class ResumeException(message: String, val errorId: String) : Exception

Thrown by resume when the authorization server returns an error.

Functions

Link copied to clipboard
abstract suspend fun resume(uri: String, flowContext: AuthorizationCodeFlowContext): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for TokenInfo>

Completes the Authorization Code redirect flow by exchanging the authorization code for tokens.

Link copied to clipboard

Resumes the Authorization Code flow using an Android android.net.Uri.

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

Initiates the Authorization Code redirect flow.