ConduitMcp.OAuth.KeyProvider.JWKS (ConduitMCP v0.9.0)

Copy Markdown View Source

JWKS key provider that fetches keys from an HTTP endpoint with ETS caching.

Fetches JSON Web Key Sets from the authorization server's JWKS URI, caches them in ETS, and auto-refreshes on cache miss or expiration.

Configuration

auth: [
  strategy: :oauth,
  key_provider: {ConduitMcp.OAuth.KeyProvider.JWKS,
    jwks_uri: "https://auth.example.com/.well-known/jwks.json",
    cache_ttl: :timer.hours(1)}    # default: 1 hour
]

Requirements

Requires the req package:

{:req, "~> 0.5"}