Package-level declarations

Types

Link copied to clipboard

Client authentication methods for provider endpoints that require client credentials, such as the token endpoint and the token introspection endpoint.

Link copied to clipboard

First-class OpenID Connect plugin for Ktor server authentication.

Link copied to clipboard

Access-token verification policy for resource-server Bearer authentication.

Link copied to clipboard

Base exception for OpenID Connect discovery failures.

Link copied to clipboard
data class OidcEnvConfig(val issuer: String, val clientId: String, val clientSecret: String, val scopes: List<String>)

Serializable OpenID Connect provider values commonly stored in application configuration.

Link copied to clipboard

JWT verification configuration shared by ID tokens and JWT access tokens.

Link copied to clipboard
class OidcMetadataRefreshFailure(val provider: OidcProvider, val consecutiveFailures: Int, val cause: Throwable)

Details of a failed periodic OpenID Connect discovery metadata refresh. Routes and token validation continue with the last successful discovery document.

Link copied to clipboard

OAuth/OpenID Connect configuration.

Link copied to clipboard

Configuration for the Oidc plugin.

Link copied to clipboard

Typed authentication capabilities for one configured OpenID Connect provider.

Link copied to clipboard

Configuration for a single OpenID Connect provider (issuer).

Link copied to clipboard

Configuration for OIDC session transport and CSRF protection.

Link copied to clipboard

Thrown when the signing key for a token cannot be resolved because of a JWKS failure.

Link copied to clipboard

Symmetric key material used to encrypt the temporary OAuth state cookie.

Link copied to clipboard

Token material returned or validated by the OpenID Connect plugin.

Link copied to clipboard

Extracts a Bearer token candidate from an application call.

Link copied to clipboard

RFC 7662 token introspection configuration for Bearer authentication.

Link copied to clipboard
class OidcTokenRefreshResult(val accessToken: String, val refreshToken: String? = null, val expiresIn: Duration? = null, val tokenType: String, val scope: String? = null, val idToken: OidcToken.Id? = null)

Token response returned by refreshToken.

Link copied to clipboard

Strategy used to refresh OpenID Connect browser sessions.

Link copied to clipboard

Thrown when a token fails OpenID Connect validation and must not be trusted.

Link copied to clipboard
class OpenIdProviderMetadata(val issuer: String, val authorizationEndpoint: String, val tokenEndpoint: String, val userInfoEndpoint: String? = null, val jwksUri: String, val registrationEndpoint: String? = null, val scopesSupported: List<String>? = null, val responseTypesSupported: List<String>? = null, val responseModesSupported: List<String>? = null, val grantTypesSupported: List<String>? = null, val acrValuesSupported: List<String>? = null, val subjectTypesSupported: List<String>? = null, val idTokenSigningAlgValuesSupported: List<String>? = null, val idTokenEncryptionAlgValuesSupported: List<String>? = null, val idTokenEncryptionEncValuesSupported: List<String>? = null, val userinfoSigningAlgValuesSupported: List<String>? = null, val userinfoEncryptionAlgValuesSupported: List<String>? = null, val userinfoEncryptionEncValuesSupported: List<String>? = null, val requestObjectSigningAlgValuesSupported: List<String>? = null, val requestObjectEncryptionAlgValuesSupported: List<String>? = null, val requestObjectEncryptionEncValuesSupported: List<String>? = null, val tokenEndpointAuthMethodsSupported: List<String>? = null, val tokenEndpointAuthSigningAlgValuesSupported: List<String>? = null, val displayValuesSupported: List<String>? = null, val claimTypesSupported: List<String>? = null, val claimsSupported: List<String>? = null, val claimsLocalesSupported: List<String>? = null, val uiLocalesSupported: List<String>? = null, val claimsParameterSupported: Boolean? = null, val requestParameterSupported: Boolean? = null, val requestUriParameterSupported: Boolean? = null, val requireRequestUriRegistration: Boolean? = null, val authorizationResponseIssParameterSupported: Boolean? = null, val opPolicyUri: String? = null, val opTosUri: String? = null, val endSessionEndpoint: String? = null, val checkSessionIframe: String? = null)

OpenID Connect discovery document containing OAuth 2.0 authorization server metadata.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Local signing keys for OpenID Connect tests.

Link copied to clipboard

Base claim builder for test JWTs issued by OpenIdTestKeys.

Link copied to clipboard
class ProtectedResourceMetadata(val resource: String, val authorizationServers: List<String>? = null, val jwksUri: String? = null, val scopesSupported: List<String>? = null, val bearerMethodsSupported: List<String>? = null, val resourceSigningAlgValuesSupported: List<String>? = null, val resourceName: String? = null, val resourceDocumentation: String? = null, val resourcePolicyUri: String? = null, val resourceTosUri: String? = null, val tlsClientCertificateBoundAccessTokens: Boolean? = null, val authorizationDetailsTypesSupported: List<String>? = null, val dpopSigningAlgValuesSupported: List<String>? = null, val dpopBoundAccessTokensRequired: Boolean? = null)

OAuth 2.0 Protected Resource Metadata as defined in RFC 9728.

Link copied to clipboard

Configuration for OAuth 2.0 Protected Resource Metadata (RFC 9728).

Link copied to clipboard

Structured JWT claims access.

Link copied to clipboard
class TokenIntrospection(val active: Boolean, val scope: String? = null, val clientId: String? = null, val username: String? = null, val tokenType: String? = null, val expiresAt: Long? = null, val issuedAt: Long? = null, val notBefore: Long? = null, val subject: String? = null, val audience: List<String> = emptyList(), val issuer: String? = null, val jwtId: String? = null, val claims: JsonObject = JsonObject(emptyMap()))

Normalized RFC 7662 token introspection response.

Properties

Link copied to clipboard

Monitor event raised when a periodic OpenID Connect discovery metadata refresh fails.

Functions

Link copied to clipboard

Fetches OpenID Connect discovery document from the authorization server.