login

suspend fun login(    context: Context,     redirectUrl: String,     extraRequestParameters: Map<String, String> = emptyMap(),     scope: String = oidcClient.configuration.defaultScope): OidcClientResult<Token>

Initiates the OIDC Authorization Code redirect flow.

Parameters

context

the Android Activity which is used to display the login flow via the configured WebAuthenticationProvider.

redirectUrl

the redirect URL.

extraRequestParameters

the extra key value pairs to send to the authorize endpoint. See Authorize Documentation for parameter options.

scope

the scopes to request during sign in. Defaults to the configured OidcClient.