OAuth2ClientConfiguration
Immutable configuration for OAuth2Client.
Created via OAuth2ClientBuilder. Contains all settings needed to construct and operate an OAuth2 client without requiring global singletons.
Properties
Validator for access tokens. Validates at_hash claim against the access token hash.
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.
The HTTP executor used for all network requests.
The authorization server ID provided at build time, or null for the org authorization server.
Optional provider for private_key_jwt (or similar JWT-based) client authentication. Mutually exclusive with clientSecret. See ClientAssertionProvider.
Optional client secret for confidential clients.
The dispatcher used for CPU-bound work, such as invoking clientAssertionProvider.
The default access scopes required by the client.
Validator for device secrets. Validates ds_hash claim against the device secret hash.
Enables Pushed Authorization Requests (PAR) for browser-based authorization flows.
Optional per-endpoint URL overrides. Non-null fields win over discovery results.
Validator for ID tokens. ID tokens are validated after token refresh.
Optional callback invoked when an HTTP 429 rate-limit response is received.
Functions
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.