OAuth2ClientConfiguration

Immutable configuration for OAuth2Client.

Created via OAuth2ClientBuilder. Contains all settings needed to construct and operate an OAuth2 client without requiring global singletons.

Properties

Link copied to clipboard

Validator for access tokens. Validates at_hash claim against the access token hash.

Link copied to clipboard

Optional ACR values.

Link copied to clipboard

Allows browser-based authorization flows to fall back to the classic authorization request URL when PAR is optional but unavailable or the push request fails.

Link copied to clipboard

The HTTP executor used for all network requests.

Link copied to clipboard

The authorization server ID provided at build time, or null for the org authorization server.

Link copied to clipboard

The cache used to optimize network calls.

Link copied to clipboard

Optional provider for private_key_jwt (or similar JWT-based) client authentication. Mutually exclusive with clientSecret. See ClientAssertionProvider.

Link copied to clipboard

The application's client ID.

Link copied to clipboard

Optional client secret for confidential clients.

Link copied to clipboard

The clock used for time-related operations (token expiry, JWT validation).

Link copied to clipboard
val computeDispatcher: ERROR CLASS: Symbol not found for CoroutineContext

The dispatcher used for CPU-bound work, such as invoking clientAssertionProvider.

Link copied to clipboard

The default access scopes required by the client.

Link copied to clipboard

Validator for device secrets. Validates ds_hash claim against the device secret hash.

Link copied to clipboard

Enables Pushed Authorization Requests (PAR) for browser-based authorization flows.

Link copied to clipboard

Optional per-endpoint URL overrides. Non-null fields win over discovery results.

Link copied to clipboard

Validator for ID tokens. ID tokens are validated after token refresh.

Link copied to clipboard

The effective issuer URL used for OIDC discovery and token validation.

Link copied to clipboard
val json: ERROR CLASS: Symbol not found for Json

The JSON serializer for encoding/decoding responses.

Link copied to clipboard

Optional callback invoked when an HTTP 429 rate-limit response is received.

Functions

Link copied to clipboard

Builds the client-authentication form parameters for a request to audience (the exact endpoint URL being called), invoking clientAssertionProvider fresh if configured so its assertion can carry a unique jti and a correctly scoped aud/exp.