Crate jwks_cache

Crate jwks_cache 

Source
Expand description

High-performance async JWKS cache with ETag revalidation, early refresh, and multi-tenant support — built for modern Rust identity systems.

Re-exports§

pub use crate::metrics::install_default_exporter;

Modules§

cache
Cache module containing state machine and manager implementations.
http
HTTP helpers for JWKS retrieval and cache semantics.
metrics
Metrics helpers and per-provider telemetry bookkeeping.
security
Security utilities covering HTTPS enforcement, domain allowlists, and SPKI pinning.

Structs§

IdentityProviderRegistration
Registration describing how to fetch and maintain JWKS for a provider.
PersistentSnapshot
Snapshot of cache payload persisted to external storage.
ProviderStatus
Status projection for a provider, aligned with the OpenAPI contract.
Registry
Registry state container.
RegistryBuilder
Builder for Registry enabling multi-tenant configuration.
RetryPolicy
Retry configuration for HTTP fetch operations.
StatusMetric
Metric sample used in provider status responses.

Enums§

Error
Unified error type for the JWKS cache crate.
JitterStrategy
Supported jitter strategies for retry policies.
ProviderState
Public representation of provider lifecycle state.

Type Aliases§

Result
Library-wide result type.