Package com.codename1.io.oidc
package com.codename1.io.oidc
OpenID Connect (OIDC) client with PKCE.
OidcClient drives the Authorization Code + PKCE flow against any
standards-compliant identity provider (Auth0, Okta, Google, Microsoft
Entra, Keycloak, ...). It launches a system browser via
SystemBrowser / OidcBrowserNative, exchanges the authorization code
for tokens, and persists them through a pluggable TokenStore.
Companion classes (OidcConfiguration, OidcTokens, PkceChallenge,
OidcException) carry configuration, results and errors.
-
ClassDescriptionService-provider interface that
SystemBrowseruses to dispatch a sign-in flow through the OS's hardened sign-in surface (ASWebAuthenticationSessionon iOS,androidx.browser.customtabs/Credential Manageron Android).Modern OpenID Connect / OAuth 2.0 client.The subset of an OpenID Connect provider's.well-known/openid-configurationdocument thatOidcClientcares about.Fluent builder forOidcConfiguration.What an authorization server answers when a device starts the device authorization grant (RFC 8628): the code the user types, where they type it, and how the device waits.Thrown for failures during an OpenID Connect / OAuth 2.0 flow driven byOidcClient.Sends anOidcClient's access token with the application's requests, and renews it with the refresh token when the service refuses it.Told when the user has to sign in again.The tokens returned by an OpenID Connect token endpoint, with convenience accessors for the OIDC ID token claims.One PKCE pair (RFC 7636).ATokenStorethat keeps anOidcClient's tokens in the platform's secure storage -- the iOS keychain, the Android keystore, and what each desktop and browser port provides -- instead of the application's ordinaryStorage.Routes an authorization-code-flow sign-in through the system browser (ASWebAuthenticationSessionon iOS, an Android Custom Tab on Android, the user's default browser on JavaSE / Web) and resolves with the final redirect URL once the OS hands it back.Pluggable persistence for anOidcClient's tokens.The default store.