Expand description
JWT claim types, codecs, validation helpers, and JWKS support.
This module contains the main JWT-facing API of webgates-codecs.
It provides:
- registered JWT claims via
RegisteredClaims - combined application and registered claims via
JwtClaims - a configurable JWT codec via
JsonWebTokenandJsonWebTokenOptions - validation helpers in
validation_serviceandvalidation_result - JWKS helpers in
jwks
The implementation is framework-agnostic and depends only on shared types
from webgates-core plus the codec abstractions from this crate.
Prefer the canonical module-owned public paths for validation helpers:
Modules§
- authority
- Sign ES384 JWTs and publish the matching JWKS document.
- jwks
- JWKS document types and ES384 key conversion support.
- remote_
verifier - Fetch, cache, refresh, and use a remote JWKS document to verify JWTs.
- validation_
result - Types describing the outcome of JWT validation.
- validation_
service - Services for validating decoded JWTs against application expectations.
Structs§
- Es384
KeyPair - In-memory ES384 key material loaded from disk or generated on startup.
- Es384
KeyPair Loader - Loads or initializes an ES384 key pair from the filesystem.
- Es384
KeyPair Paths - File paths for an ES384 key pair managed on disk.
- Json
WebToken - JWT codec backed by the
jsonwebtokencrate. - Json
WebToken Options - Options used to configure a
JsonWebTokencodec. - JwtClaims
- Combined registered and application-specific JWT claims.
- Registered
Claims - Registered claims defined by the JWT specification.