Crate salvo_jwt_auth
source ·Expand description
The jwt auth middleware of Savlo web server framework.
Read more: https://salvo.rs
Re-exports§
pub use jsonwebtoken::decode;
pub use jsonwebtoken::errors::Error as JwtError;
pub use jsonwebtoken::Algorithm;
pub use jsonwebtoken::DecodingKey;
pub use jsonwebtoken::TokenData;
pub use jsonwebtoken::Validation;
pub use oidc::OidcDecoder;
oidc
Modules§
- oidc
oidc
Oidc(OpenID Connect) supports.
Structs§
- ConstDecoder will decode token with a static secret.
- CookieFinder
FormFinder
is to find a JWT from a request form.HeaderFinder
is to find a JWT from a request header.- JwtAuth, used as middleware.
QueryFinder
is to find a JWT from a request query string.
Enums§
- JwtAuthError
- JwtAuthState
Constants§
- key used to insert auth decoded data to depot.
- key used to insert auth error to depot.
- key used to insert auth state data to depot.
- key used to insert auth token data to depot.
Traits§
- JwtAuthDecoder is used to decode token to claims.
- JwtAuthDepotExt
JwtTokenFinder
is to provide a way to find a JWT (JSON Web Token) from a request.