Skip to main content

Module cache

Module cache 

Source
Expand description

In-process caches for OAuth tokens, AS metadata, and JWKS.

Structs§

CachedToken
A cached access-token entry.
DocumentCache
Generic JSON document cache shared by metadata and JWKS layers.
DocumentFetcher
Fetcher for JSON documents (AS metadata, JWKS, …).
FetchResult
Result returned by a DocumentFetcherFn.
JwksCache
JWKS cache.
MetadataCache
AS metadata cache.
TokenCache
In-memory cache for AS-issued machine tokens.

Functions§

parse_expires_at
Extract an absolute Unix expiry timestamp from HTTP response headers.

Type Aliases§

DocumentChangeCallback
Type alias for the on_change callback used by DocumentCache.
DocumentFetcherFn
Type alias for the boxed async fetcher closure used by DocumentCache.
MetadataChangeCallback
Convenience alias for the metadata on_change callback shape.