OidcConfiguration

@Serializable
class OidcConfiguration

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.

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

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.