actix_web_security/authentication/scheme/bearer/jwt/mod.rs
1//! The jwt bearer scheme module offers an implementation of a JWT based authentication header extractor, authentication provider and
2//! user detail service.
3
4use crate::authentication::scheme::authentication::Authentication;
5use crate::authentication::scheme::bearer::jwt::token::Claims;
6
7pub mod authentication_provider;
8pub mod default_jwt;
9pub mod header_extractor;
10pub mod token;
11pub mod user_details_service;
12
13/// A JWT authentication struct representing the decoded JWT `Claims` extracted from the authorization header.
14pub struct JwtBearerAuthentication {
15 pub token: Box<dyn Claims>,
16}
17
18impl Authentication for JwtBearerAuthentication {}