Expand description
§JWT API
This module contains the public API for the JWT library including parsers, providers, and validators.
§Primary types
api::JWTClaimsParser: parser for JWT claimsapi::TokenProvider: provider for JWT tokensapi::SignatureValidator: validator for JWT signaturesapi::JwtGenerator: Generator for JWT tokensapi::error::JWTError: error type for JWT operationsapi::model::JWTClaims: struct representing JWT claimsapi::model::SigningAlgorithm: enum representing JWT signing algorithms
Modules§
Structs§
- JWTClaims
Parser - This parser receives an untrusted JWT token (validation should be done previously using
a SignatureValidator) and results in the content of the JWT
extracted into a
JWTClaims. If parsing fails, it results in aJWTError. - JwtGenerator
- Helper to generate JWT tokens
- Signature
Validator - Main signature validator implementation. It receives the specifications of the signature check:
- Token
Provider - Strategies to retrieve the JWT token from the incoming HTTP requests context.
Enums§
- Generator
Error - Error type for JWT generator operations