74 releases (30 breaking)

Uses new Rust 2024

new 0.77.1 Mar 21, 2025
0.76.2 Feb 4, 2025
0.75.0 Dec 30, 2024
0.74.2 Nov 11, 2024
0.49.1 Jul 29, 2023

#1403 in HTTP server

Download history 32571/week @ 2024-12-05 37926/week @ 2024-12-12 40767/week @ 2024-12-19 29930/week @ 2024-12-26 27322/week @ 2025-01-02 36199/week @ 2025-01-09 43882/week @ 2025-01-16 24007/week @ 2025-01-23 41001/week @ 2025-01-30 35977/week @ 2025-02-06 45942/week @ 2025-02-13 63605/week @ 2025-02-20 82037/week @ 2025-02-27 57983/week @ 2025-03-06 58190/week @ 2025-03-13 50549/week @ 2025-03-20

265,184 downloads per month
Used in 6 crates (via salvo)

MIT/Apache

750KB
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–37MB
~679K SLoC