oidc-provider.discovery
OpenID Connect Discovery and metadata endpoints.
DiscoveryConfig
Malli schema for discovery configuration.
jwks-endpoint
(jwks-endpoint provider-config)Generates JWKS endpoint response.
Takes a provider configuration map containing the signing key and generates the JSON Web Key Set for the JWKS endpoint. Returns a map containing the public keys in JWKS format that clients can use to validate signed tokens.
openid-configuration
(openid-configuration {:keys [issuer authorization-endpoint token-endpoint jwks-uri userinfo-endpoint scopes-supported response-types-supported grant-types-supported subject-types-supported id-token-signing-alg-values-supported token-endpoint-auth-methods-supported claims-supported], :as config})Generates OpenID Connect Discovery metadata.
Takes a discovery configuration map matching the DiscoveryConfig schema containing issuer, endpoints, and supported features. Validates the configuration and builds the OpenID Connect Discovery metadata document per RFC 8414. Provides sensible defaults for optional fields like supported scopes, response types, and grant types. Returns a map containing the complete discovery metadata.