OAuth2ClientBuilder
class OAuth2ClientBuilder
Builder for creating an OAuth2Client.
Use the create factory method to construct an instance.
val client = OAuth2ClientBuilder.create(
issuerUrl = "https://your-okta-domain.okta.com/oauth2/default",
clientId = "your-client-id",
scope = "openid profile offline_access",
) {
clock = OidcClock { customTimeSource() }
}.getOrThrow()Content copied to clipboard
Properties
Link copied to clipboard
Access token validator. When set, access tokens are validated via at_hash claim.
Link copied to clipboard
The HTTP executor used for all network requests.
Link copied to clipboard
Optional authorization server ID.
Link copied to clipboard
Optional client secret for confidential clients.
Link copied to clipboard
The dispatcher for compute-bound operations.
Link copied to clipboard
Device secret validator. When set, device secrets are validated via ds_hash claim.
Link copied to clipboard
ID token validator. When set, ID tokens are validated after token refresh.
Link copied to clipboard
The dispatcher for IO-bound operations.