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 oidc::OidcDecoder;
Modules
- oidc
oidc
Oidc(OpenID Connect) support module
Structs
- ConstDecoder will decode token with a static secret.
- CookieFinder
- All the different kind of keys we can use to decode a JWT. This key can be re-used so make sure you only initialize it once if you can for better performance.
- FormFinder
- HeaderFinder
- JwtAuth, used as middleware.
- An error that can occur when encoding/decoding JWTs
- QueryFinder
- The return type of a successful call to decode.
- Contains the various validations that are applied after decoding a JWT.
Enums
- The algorithms supported for signing/verifying JWTs
- JwtAuthError
- JwtAuthState
Constants
- key used to insert auth decoded data 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
Functions
- Decode and validate a JWT