Module jwt

Expand description

The jwt bearer scheme module offers an implementation of a JWT based authentication header extractor, authentication provider and user detail service.

Modules§

authentication_provider
A default implementation of an AuthenticationProvider for a JWT based OAuth2 authentication.
default_jwt
A JWT is characterized through a set of Claims. There are mandatory claims defined for JWTs and optional ones. This module provides a default implementation with common claims (iss, sub, aud, exp, nbf, iat, jti).
header_extractor
A default implementation of a authentication extractor for bearer token based authentication.
token
The token module provides a trait definition of Claims, TokenDecoder and a RSA token decoder implementation.
user_details_service
The trait definition of a user details service and its clone capabilities for the JWT based authentication.

Structs§

JwtBearerAuthentication
A JWT authentication struct representing the decoded JWT Claims extracted from the authorization header.