IdTokenValidator

Used for validating ID tokens minted by an Authorization Server.

See OpenID Connect Core 1.0 - ID Token Validation.

Inheritors

Types

Link copied to clipboard
class Error(message: String, val identifier: String = "") : IllegalStateException

An error describing a validation failure.

Link copied to clipboard
class Parameters(val nonce: String?, val maxAge: Int?)

Parameters for ID token validation.

Functions

Link copied to clipboard
abstract suspend fun validate(issuerUrl: String, clientId: String, idToken: Jwt, clock: OidcClock, issuedAtGracePeriodInSeconds: Int = 600, parameters: IdTokenValidator.Parameters = Parameters(nonce = null, maxAge = null))

Validates the given idToken.