Skip to main content

Module service

Module service 

Source
Expand description

JWT service for encoding, decoding, and validation.

Structs§

JwtConfig
Configuration for JWT encoding and decoding.
JwtService
JWT service for encoding, decoding, and validating tokens.
RotationKey
One entry in the rotation key set: secret material plus the key id that tokens signed with it carry in their kid header.

Enums§

JwtAlgorithm
Supported JWT algorithms.

Constants§

DEFAULT_LEEWAY_SECS
Default validation leeway (seconds) applied when JwtConfig::leeway is None. Matches jsonwebtoken’s own default, but is set explicitly so the effective skew tolerance never changes silently underneath us.
DEFAULT_REQUIRED_CLAIMS
Claims required to be present in every token unless overridden via JwtConfig::required_claims.
DEFAULT_REVOCATION_MAX_ENTRIES
Default bound for InMemoryRevocationStore (feature revocation).