Documentation
¶
Overview ¶
Package oidc validates OIDC bearer tokens against their issuer's JWKS endpoint.
JWKS keys are cached per issuer for 1 hour. Multi-issuer validation is supported via an optional allowlist.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetCacheForTesting ¶
func ResetCacheForTesting()
ResetCacheForTesting clears the JWKS cache. Only for use in tests.
func SetTrustedJWKSHosts ¶ added in v0.0.3
SetTrustedJWKSHosts installs the per-issuer JWKS host override map. Set once at startup. Issuer keys are matched after trimming trailing slash; host values are matched case-insensitively against the discovered jwks_uri host.
Types ¶
Click to show internal directories.
Click to hide internal directories.