Package-level declarations

Types

Link copied to clipboard

Handles OAuth sign-in and Identity-Aware Proxy (IAP) sign-in/sign-out flows by launching a Custom Tab for user interaction.

Link copied to clipboard
sealed interface AuthenticatorState : NetworkAuthenticationChallengeHandler, ArcGISAuthenticationChallengeHandler

Handles authentication challenges and exposes state for the Authenticator to display to the user.

Link copied to clipboard

Represents different types of browser-based authentication challenges.

Link copied to clipboard
data class ClientCertificateChallenge(val keyChainAliasCallback: KeyChainAliasCallback, val onCancel: () -> Unit)

Represents an authentication challenge requiring a client certificate.

Link copied to clipboard

An activity that is responsible for launching a CustomTabs activity and to receive and process the redirect intent as a result of a user completing the CustomTabs prompt.

Link copied to clipboard
class ServerTrustChallenge(val challenge: NetworkAuthenticationChallenge, onUserResponseReceived: (Boolean) -> Unit)

Represents a NetworkAuthenticationChallenge of type NetworkAuthenticationType.ServerTrust.

Link copied to clipboard
class UsernamePasswordChallenge(val url: String, onUsernamePasswordReceived: (username: String, password: String) -> Unit, val cause: Throwable? = null, onCancel: () -> Unit)

Represents an authentication challenge requiring a username and password.

Functions

Link copied to clipboard
fun Authenticator(authenticatorState: AuthenticatorState, modifier: Modifier = Modifier)
fun Authenticator(authenticatorState: AuthenticatorState, modifier: Modifier = Modifier, onPendingOAuthUserSignIn: (OAuthUserSignIn) -> Unit? = null)
@JvmName(name = "AuthenticatorWithBrowserAuthenticationChallenge")
fun Authenticator(authenticatorState: AuthenticatorState, modifier: Modifier = Modifier, onPendingBrowserAuthenticationChallenge: (BrowserAuthenticationChallenge) -> Unit)

Displays appropriate Authentication UI when an authentication challenge is issued.

Link copied to clipboard
fun AuthenticatorState(setAsArcGISAuthenticationChallengeHandler: Boolean = true, setAsNetworkAuthenticationChallengeHandler: Boolean = true): AuthenticatorState

Handles authentication challenges and exposes state for the Authenticator to display to the user.

Link copied to clipboard

Completes the current browser-based authentication challenge for the AuthenticatorState.

Link copied to clipboard

Completes the current AuthenticatorState.pendingOAuthUserSignIn with data from the provided intent.

Link copied to clipboard
fun DialogAuthenticator(authenticatorState: AuthenticatorState, modifier: Modifier = Modifier)
fun DialogAuthenticator(authenticatorState: AuthenticatorState, modifier: Modifier = Modifier, onPendingOAuthUserSignIn: (OAuthUserSignIn) -> Unit? = null)
@JvmName(name = "DialogAuthenticatorWithBrowserAuthenticationChallenge")
fun DialogAuthenticator(authenticatorState: AuthenticatorState, modifier: Modifier = Modifier, onPendingBrowserAuthenticationChallenge: (BrowserAuthenticationChallenge) -> Unit)

Displays appropriate Authentication UI when an authentication challenge is issued.

Link copied to clipboard
fun Activity.launchCustomTabs(pendingSignIn: OAuthUserSignIn?)

Launches the custom tabs activity with the provided authorize URL. The resulting intent will launch using an Incognito tab if the pendingSignIn's OAuthUserConfiguration.preferPrivateWebBrowserSession is true.

fun Activity.launchCustomTabs(pendingBrowserAuthenticationChallenge: BrowserAuthenticationChallenge)

Launches the custom tabs activity with the provided browser authentication challenge.

Link copied to clipboard
suspend fun AuthenticationManager.signOut()

Revokes OAuth tokens and removes all credentials from the AuthenticationManager.arcGISCredentialStore and AuthenticationManager.networkCredentialStore.

Link copied to clipboard
fun UsernamePasswordAuthenticator(usernamePasswordChallenge: UsernamePasswordChallenge, modifier: Modifier = Modifier)

Displays a username and password prompt to the user.