98 releases (45 breaking)

Uses new Rust 2024

new 0.92.0 Apr 17, 2026
0.90.1 Apr 2, 2026
0.89.3 Mar 18, 2026
0.87.1 Dec 31, 2025
0.49.1 Jul 29, 2023

#1987 in HTTP server

Download history 107974/week @ 2025-12-26 102667/week @ 2026-01-02 86123/week @ 2026-01-09 89059/week @ 2026-01-16 131726/week @ 2026-01-23 85601/week @ 2026-01-30 110274/week @ 2026-02-06 116397/week @ 2026-02-13 75990/week @ 2026-02-20 112672/week @ 2026-02-27 103417/week @ 2026-03-06 107257/week @ 2026-03-13 82421/week @ 2026-03-20 81964/week @ 2026-03-27 94864/week @ 2026-04-03 73047/week @ 2026-04-10

357,948 downloads per month
Used in 17 crates (via salvo)

Apache-2.0

1MB
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 Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0).

Dependencies

~29–50MB
~841K SLoC