WebAuthentication
Authentication coordinator that simplifies signing users in using browser-based OIDC authentication flows.
This simple class encapsulates the details of launching the browser, and coordinating with OAuth2 endpoints.
To customize the flow, please read more about customization options: WebAuthenticationProvider, DefaultWebAuthenticationProvider. To further customize the authentication flow, please read more about the underlying flows: AuthorizationCodeFlow, RedirectEndSessionFlow.
Constructors
Initializes a web authentication client backed by a KMP OAuth2Client.
Initializes a web authentication client.
Initializes a web authentication client.
Initializes a web authentication client backed by an Android-only OAuth2Client.
Types
Surfaced as the failure cause of a login or logoutOfBrowser call — inside a failed Result for the List-scope login overload, or as OAuth2ClientResult.Error.exception for logoutOfBrowser and the deprecated String-scope login overload.
Surfaced as the failure cause of a login or logoutOfBrowser call — inside a failed Result for the List-scope login overload, or as OAuth2ClientResult.Error.exception for logoutOfBrowser and the deprecated String-scope login overload.
Functions
Initiates the OIDC Authorization Code redirect flow. Suspends until the browser redirect completes or the user cancels. Preferred over the String-scope overload.
Initiates the OIDC Authorization Code redirect flow.
Initiates the OIDC logout redirect flow.