81 releases (37 breaking)

Uses new Rust 2024

new 0.84.0 Sep 11, 2025
0.82.0 Aug 15, 2025
0.81.0 Jul 19, 2025
0.77.1 Mar 21, 2025
0.49.1 Jul 29, 2023

#1706 in HTTP server

Download history 87487/week @ 2025-05-24 74925/week @ 2025-05-31 53958/week @ 2025-06-07 69919/week @ 2025-06-14 58849/week @ 2025-06-21 50004/week @ 2025-06-28 64342/week @ 2025-07-05 66259/week @ 2025-07-12 46417/week @ 2025-07-19 63473/week @ 2025-07-26 65063/week @ 2025-08-02 109209/week @ 2025-08-09 70083/week @ 2025-08-16 79982/week @ 2025-08-23 91718/week @ 2025-08-30 50295/week @ 2025-09-06

314,587 downloads per month
Used in 8 crates (via salvo)

MIT/Apache

795KB
19K SLoC

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:

salvo = { version = "*", features = ["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

Dependencies

~20–36MB
~674K SLoC