salvo-jwt-auth

Crates.iosalvo-jwt-auth
lib.rssalvo-jwt-auth
version0.84.0
created_at2023-07-10 08:32:39.842246+00
updated_at2025-09-11 07:31:33.238093+00
descriptionJwt auth support for salvo web server framework.
homepagehttps://salvo.rs
repositoryhttps://github.com/salvo-rs/salvo
max_upload_size
id912720
size113,568
Maintainers (github:salvo-rs:maintainers)

documentation

README

Salvo

English   简体中文   繁體中文

build status build status build status codecov
crates.io Documentation Download unsafe forbidden Rust Version
Website

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

Commit count: 3335

cargo fmt