DialogAuthenticator

fun DialogAuthenticator(authenticatorState: AuthenticatorState, modifier: Modifier = Modifier, onPendingOAuthUserSignIn: (OAuthUserSignIn) -> Unit? = null)

Displays appropriate Authentication UI when an authentication challenge is issued.

For example, when an ArcGISAuthenticationChallenge is issued and the AuthenticatorState has a corresponding OAuthUserConfiguration, then a Custom Tab will be launched to complete the OAuth sign in.

Server trust prompts and username/password prompts will be displayed in a dialog. All other prompts are displayed in full screen.

For alternate behavior, see the Authenticator component.

Since

200.2.0

Parameters

authenticatorState

the object that holds the state to handle authentication challenges.

modifier

the Modifier to be applied to this DialogAuthenticator.

onPendingOAuthUserSignIn

if not null, this will be called when an OAuth challenge is pending and the browser should be launched. Use this if you wish to handle OAuth challenges from your own activity rather than using the OAuthUserSignInActivity.

See also