75 releases (31 breaking)

Uses new Rust 2024

0.78.0 Apr 12, 2025
0.77.1 Mar 21, 2025
0.76.2 Feb 4, 2025
0.75.0 Dec 30, 2024
0.49.1 Jul 29, 2023

#988 in HTTP server

Download history 53686/week @ 2025-02-03 30824/week @ 2025-02-10 54410/week @ 2025-02-17 82791/week @ 2025-02-24 74750/week @ 2025-03-03 53543/week @ 2025-03-10 53118/week @ 2025-03-17 55663/week @ 2025-03-24 52775/week @ 2025-03-31 66254/week @ 2025-04-07 63938/week @ 2025-04-14 67688/week @ 2025-04-21 61440/week @ 2025-04-28 83732/week @ 2025-05-05 56517/week @ 2025-05-12 75162/week @ 2025-05-19

280,831 downloads per month
Used in 7 crates (via salvo)

MIT/Apache

745KB
17K 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

~21–35MB
~665K SLoC