Skip to content

cmackenzie1/axum-jwt-auth

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date
Jan 25, 2025
Jan 26, 2025
Jan 26, 2025
Jul 28, 2023
Jan 26, 2025
Jul 27, 2023
Jan 26, 2025
Jan 26, 2025
Jul 28, 2023
Jan 26, 2025
Jan 26, 2025
Jan 25, 2025

Repository files navigation

axum-jwt-auth

Rust Crates.io Version docs.rs

A Rust library providing JWT authentication middleware for Axum web applications. It supports both local and remote JWKS validation, handles token extraction and validation, and provides strongly-typed claims access in your request handlers. Built on top of jsonwebtoken, it offers a simple yet flexible API for securing your Axum routes with JWT authentication.

Installation

cargo add axum-jwt-auth

Usage

See examples for how to use the library. It includes a local and remote example.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

This project is licensed under the MIT License - see the LICENSE file for details.