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
AuthenticationProviderfor 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,TokenDecoderand 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§
- JwtBearer
Authentication - A JWT authentication struct representing the decoded JWT
Claimsextracted from the authorization header.