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. If Custom Tabs are not supported by the default browser, sign-in will fail with an error of type CustomTabsNotFoundException.

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

Exception thrown when the default browser does not support Custom Tabs.

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)
@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
fun DialogAuthenticator(authenticatorState: AuthenticatorState, modifier: Modifier = Modifier)
@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(pendingBrowserAuthenticationChallenge: BrowserAuthenticationChallenge)

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