Package-level declarations

Types

Link copied to clipboard

Encapsulates the behavior required to authenticate using the OIDC Authorization Code flow with PKCE.

Link copied to clipboard
data class AuthorizationCodeFlowContext(val url: String, val redirectUrl: String, codeVerifier: String, state: String, nonce: String, maxAge: Int?)

A model representing the context and current state for an authorization code session.

Link copied to clipboard

Abstracts browser launch and redirect capture for redirect-based OAuth2 flows.

Link copied to clipboard
Link copied to clipboard
data class DeviceAuthorizationFlowContext(val verificationUri: String, val verificationUriComplete: String?, val userCode: String, val expiresIn: Int, deviceCode: String, interval: Int)

Holds the state for an in-progress DeviceAuthorizationFlow session.

Link copied to clipboard
class LocalhostBrowserRedirectHandler(port: Int, path: String, timeoutMs: Long = DEFAULT_TIMEOUT_MS, browserLauncher: (String) -> Unit = Companion::defaultBrowserLauncher) : BrowserRedirectHandler

A BrowserRedirectHandler implementation for JVM that starts a localhost HTTP server, opens the system browser, and captures the redirect callback.

Link copied to clipboard

RedirectEndSessionFlow encapsulates the behavior required to log out using an OIDC browser redirect flow.

Link copied to clipboard
data class RedirectEndSessionFlowContext(val url: String, val redirectUrl: String, state: String)

A model representing the context and current state for a redirect end-session flow.

Link copied to clipboard

An authentication flow that implements the Resource Owner Password Grant.

Link copied to clipboard

Implements the Session Token authentication flow.

Link copied to clipboard

Implements the Token Exchange flow for Native SSO.

Functions

Link copied to clipboard

Creates a KMP AuthorizationCodeFlow backed by a new KMP OAuth2Client configured from this Android OAuth2Client's settings.

Link copied to clipboard

Creates a KMP DeviceAuthorizationFlow backed by a new KMP OAuth2Client configured from this Android OAuth2Client's settings.

Link copied to clipboard

Creates a KMP RedirectEndSessionFlow backed by a new KMP OAuth2Client configured from this Android OAuth2Client's settings.

Link copied to clipboard

Creates a KMP ResourceOwnerFlow backed by a new KMP OAuth2Client configured from this Android OAuth2Client's settings.

Link copied to clipboard

Resumes the Authorization Code flow using an Android android.net.Uri.

Resumes the Redirect End Session flow using an Android android.net.Uri.

Link copied to clipboard

Creates a KMP SessionTokenFlow backed by a new KMP OAuth2Client configured from this Android OAuth2Client's settings.

Link copied to clipboard

Creates a KMP TokenExchangeFlow backed by a new KMP OAuth2Client configured from this Android OAuth2Client's settings.