Gets authorization server metadata for an issuer URL.
First checks in-memory cache, then database cache, finally fetches from the authorization server if not cached or expired.
The authorization server's issuer URL
User context for database operations
Optionaloptions: { cacheTTLMinutes?: number }Optional configuration
Authorization server metadata
Invalidates cached metadata for an issuer.
Call this when you need to force a refresh of the metadata, such as after a configuration change or error.
The authorization server's issuer URL
User context for database operations
Checks if an authorization server supports DCR.
The authorization server's issuer URL
User context for database operations
true if DCR is supported
Checks if an authorization server supports PKCE with S256.
The authorization server's issuer URL
User context for database operations
true if S256 PKCE is supported (or if not explicitly listed, assume supported)
Discovers and caches OAuth 2.0 authorization server metadata.
Implements RFC 8414 metadata discovery with fallback to OpenID Connect discovery endpoint for maximum compatibility.
Features:
Example