launchAuthTab

open override fun launchAuthTab(context: Context, url: HttpUrl, redirectUrl: String, launcher: ActivityResultLauncher<Intent>): Result<Unit>

Launches the OIDC redirect flow via Auth Tab, or falls back to WebAuthenticationProvider.launchCustomTab if the resolved browser doesn't support it.

Return

Result.success if the flow launched successfully, or Result.failure with the launch exception if it fails.

Parameters

context

the Android android.app.Activity which is used to display the flow.

url

to authorize url the instance should display.

redirectUrl

the redirect URI registered for this flow, used to configure Auth Tab's redirect matching (scheme, or host+path for https).

launcher

the launcher returned by AuthTabIntent.registerActivityResultLauncher, used to launch the Auth Tab and receive its result.