Static key provider for testing and development.
Uses keys directly from configuration — no network calls.
Configuration
auth: [
strategy: :oauth,
key_provider: {ConduitMcp.OAuth.KeyProvider.Static,
keys: [
%{
"kty" => "RSA",
"kid" => "test-key-1",
"n" => "...",
"e" => "AQAB"
}
]}
]You can also pass a single JOSE-compatible key map:
key_provider: {ConduitMcp.OAuth.KeyProvider.Static,
keys: [JOSE.JWK.to_map(my_jwk) |> elem(1)]}