Package-level declarations

Types

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
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, onCancel: () -> Unit)

Represents an authentication challenge requiring a username and password.

Functions

Link copied to clipboard
fun Authenticator(authenticatorState: AuthenticatorState, modifier: Modifier = Modifier, onPendingOAuthUserSignIn: (OAuthUserSignIn) -> Unit? = null)

Displays appropriate Authentication UI when an authentication challenge is issued.

Link copied to clipboard
fun AuthenticatorState(setAsArcGISAuthenticationChallengeHandler: Boolean = true, setAsNetworkAuthenticationChallengeHandler: Boolean = true): 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, onPendingOAuthUserSignIn: (OAuthUserSignIn) -> Unit? = null)

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.

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.