Expand description
Key discovery: {iss}/.well-known/{dwk} names a jwks_uri (or carries
jwks), and the key a token or signature names is found there.
Discovery runs over a Fetch, so the caller decides which HTTP client
(and which SSRF guard) reaches the network, and tests need none.
Structs§
- Fetched
- A response to a
Fetch. - Jwks
Resolver - Discovery over a
Fetch, caching each issuer’s keys for ten minutes (seeJwksResolver::with_ttl). - NoKeys
- Resolves nothing: for verifying signatures whose scheme carries its key.
- Reqwest
Fetch client Fetchover a reqwest client.- Static
Fetch - Serves fixed JSON documents by URL, and
404for anything else: for tests, and for parties that live in the same process.
Constants§
- MAX_
DOCUMENT_ BYTES - The most a fetched document may weigh. Metadata and key sets are small; anything larger is a peer misbehaving.
Traits§
- Fetch
- An HTTP GET.
- KeyResolver
- Finds an issuer’s signing keys.