Documentation
¶
Overview ¶
Package jwks implements a JWKS cache with disk fallback and background refresh.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache owns the live keyfunc and atomically swaps it on each successful refresh.
type Config ¶
type Config struct {
JWKSURL string // URL of the JWKS endpoint (e.g. https://auth.optimum.com/auth/v1/.well-known/jwks.json)
DiskPath string // local filesystem path for the disk cache (e.g. /var/cache/jwks.json)
Refresh time.Duration // interval for background refreshes (e.g. 15m)
}
Config holds Cache construction params.
Click to show internal directories.
Click to hide internal directories.