OidcConfiguration

@Serializable
class OidcConfiguration

Deprecated

OidcConfiguration is deprecated in favor of the KMP OAuth2ClientBuilder, which works on Android and JVM. Use OAuth2ClientBuilder.create(issuerUrl, clientId, scope) to build a com.okta.authfoundation.client.kmp.OAuth2Client instead. This class will be removed in a future major release.

Configuration options for an OAuth2Client.

This class is used to define the configuration, as defined in your Okta application settings, that will be used to interact with the OIDC Authorization Server.

Constructors

Link copied to clipboard
constructor(clientId: String, defaultScope: String, issuer: String)

Used to create an OidcConfiguration.

constructor(clientId: String, defaultScope: String, issuer: String, endpointOverrides: OAuth2EndpointOverrides?)

Used to create an OidcConfiguration with custom endpoint overrides.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The AccessTokenValidator used to validate the Access Token when tokens are minted.

Link copied to clipboard
val cacheFactory: suspend () -> Cache

The factory for creating a new instance of Cache. Cache is used to optimize network calls by the SDK.

Link copied to clipboard

The application's client ID.

Link copied to clipboard

The OidcClock which is used for all time related functions in the SDK.

Link copied to clipboard

The CoroutineDispatcher which should be used for compute bound tasks.

Link copied to clipboard

The default access scopes required by the client, can be overridden when logging in.

Link copied to clipboard

The DeviceSecretValidator used to validate the device secret when tokens are minted.

Link copied to clipboard

The .well-known/openid-configuration endpoint associated with the Authorization Server. This is used to fetch the OidcEndpoints.

Link copied to clipboard

Optional per-endpoint URL overrides. Non-null fields take precedence over discovery values. When all fields are non-null the discovery document fetch is skipped entirely. See OAuth2EndpointOverrides for details and URL validation rules.

Link copied to clipboard

The EventCoordinator which the OAuth2Client should emit events to.

Link copied to clipboard

The IdTokenValidator used to validate the Id Token Jwt when tokens are minted.

Link copied to clipboard

The CoroutineDispatcher which should be used for IO bound tasks.

Link copied to clipboard
@Transient
val json: Json

The Json object to do the decoding from the okta server responses.

Link copied to clipboard
val okHttpClient: Call.Factory

The Call.Factory which makes calls to the okta server.

Link copied to clipboard
val okHttpClientFactory: () -> Call.Factory

The Call.Factory which makes calls to the okta server.