Salvo is an extremely simple and powerful Rust web backend framework. Only basic Rust knowledge is required to develop backend services.
salvo-jwt-auth
JWT (JSON Web Token) authentication middleware for the Salvo web framework.
Features
- Flexible token extraction: Extract tokens from headers, query parameters, cookies, or form data
- Multiple authentication strategies: Use either static keys or OpenID Connect for token validation
- Easy integration: Works seamlessly within Salvo's middleware system
- Type-safe claims: Decode tokens into your own custom claims structs
- Configurable validation: Customize token validation rules
Installation
This is an official crate, so you can enable it in Cargo.toml:
= { = "*", = ["jwt-auth"] }
Documentation & Resources
☕ Donate
Salvo is an open source project. If you want to support Salvo, you can ☕ buy me a coffee here.
⚠️ License
Salvo is licensed under either of
-
Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0).
-
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT).