AuthorizationCodeFlow
AuthorizationCodeFlow encapsulates the behavior required to authentication using an OIDC Browser redirect flow.
Constructors
Link copied to clipboard
constructor()
Initializes an authorization code flow.
Initializes an authorization code flow using the OidcConfiguration.
Types
Link copied to clipboard
Used in a OAuth2ClientResult.Error.exception from resume.
Link copied to clipboard
Used in a OAuth2ClientResult.Error.exception from resume.
Link copied to clipboard
Used in a OAuth2ClientResult.Error.exception from resume.
Functions
Link copied to clipboard
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 = client.configuration.defaultScope, state: String = UUID.randomUUID().toString()): OAuth2ClientResult<AuthorizationCodeFlow.Context>
Initiates the OIDC Authorization Code redirect flow.