Skip to main content

Module jwt

Module jwt 

Source
Expand description

JWT claim types, codecs, validation helpers, and JWKS support.

This module contains the main JWT-facing API of webgates-codecs.

It provides:

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§

Es384KeyPair
In-memory ES384 key material loaded from disk or generated on startup.
Es384KeyPairLoader
Loads or initializes an ES384 key pair from the filesystem.
Es384KeyPairPaths
File paths for an ES384 key pair managed on disk.
JsonWebToken
JWT codec backed by the jsonwebtoken crate.
JsonWebTokenOptions
Options used to configure a JsonWebToken codec.
JwtClaims
Combined registered and application-specific JWT claims.
RegisteredClaims
Registered claims defined by the JWT specification.