73 releases (30 breaking)

new 0.77.0 Mar 5, 2025
0.76.1 Jan 24, 2025
0.75.0 Dec 30, 2024
0.74.2 Nov 11, 2024
0.49.1 Jul 29, 2023

#1219 in HTTP server

Download history 32928/week @ 2024-11-16 46290/week @ 2024-11-23 34927/week @ 2024-11-30 36772/week @ 2024-12-07 37225/week @ 2024-12-14 33157/week @ 2024-12-21 28790/week @ 2024-12-28 32830/week @ 2025-01-04 33231/week @ 2025-01-11 41994/week @ 2025-01-18 23060/week @ 2025-01-25 51201/week @ 2025-02-01 33888/week @ 2025-02-08 49582/week @ 2025-02-15 83398/week @ 2025-02-22 74227/week @ 2025-03-01

254,812 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–36MB
~673K SLoC