Skip to main content

Module authn_cache

Module authn_cache 

Source
Expand description

Authn result cache: provider-local caching of successful authentication.

Mirrors CachingPermissionEvaluator’s backend shape — RwLock<HashMap> with lazy eviction, no moka, no new dependency — but caches AUTHENTICATION results (minted AuthenticatedPrincipals) keyed by provider + request constraints + token hash. Denials are never cached. This is a different plane from CachingPermissionEvaluator (which caches authorization decisions) and is purely additive.

Structs§

AuthnCache
Provider-local cache of successful authentication results.
AuthnCacheKey
Cache key for an authentication result.
AuthnCacheOptions
Configuration for AuthnCache.