AuthorizationCodeFlow

class AuthorizationCodeFlow

AuthorizationCodeFlow encapsulates the behavior required to authentication using an OIDC Browser redirect flow.

See Authorization Code Flow documentation

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Context

A model representing the context and current state for an authorization session.

Link copied to clipboard
class MissingResultCodeException : Exception
Link copied to clipboard
class RedirectSchemeMismatchException : Exception
Link copied to clipboard
class ResumeException : Exception

Functions

Link copied to clipboard
suspend fun resume(uri: Uri, flowContext: AuthorizationCodeFlow.Context): OidcClientResult<Token>

Resumes the OIDC Authorization Code redirect flow. This method takes the returned redirect Uri, and communicates with the Authorization Server to exchange that for a token.

Link copied to clipboard
suspend fun start(    redirectUrl: String,     extraRequestParameters: Map<String, String> = emptyMap(),     scope: String = oidcClient.configuration.defaultScope): OidcClientResult<AuthorizationCodeFlow.Context>

Initiates the OIDC Authorization Code redirect flow.