{"repo":"cmackenzie1/axum-jwt-auth","free":true,"listed":false,"github":"https://github.com/cmackenzie1/axum-jwt-auth","clone":"git clone https://github.com/cmackenzie1/axum-jwt-auth.git","description":"JWT authentication middleware for Axum","language":"Rust","stars":26,"topics":["axum","jsonwebtoken","authentication","jwt","rust"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"axum-jwt-auth JWT authentication middleware for Axum. Supports local keys and remote JWKS with automatic caching and refresh. Installation Quick Start Features - Local validation : Validate JWTs with local RSA/HMAC keys - Remote JWKS : Automatic fetching, caching, and refresh of remote JWKS endpoints - Flexible token extraction : Bearer tokens (default), custom headers or cookies - Type-safe claims : Strongly-typed claims via generic extractors - Axum integration : Drop-in extractor for route handlers Remote JWKS Validate JWTs using remote JWKS endpoints with automatic caching and refresh: The remote decoder: - Fetches JWKS on initialization - Automatically refreshes keys in the background (default: every hour) - Caches keys for fast lookup by kid (key ID) - Includes retry logic with configurable attempts and backoff - Supports graceful shutdown via CancellationToken Custom Token Extractors Extract tokens from custom headers or cookies: Examples See the examples directory for complete working examples: - local - Local RSA key validation - remote - Remote JWKS with caching and retry logic - cloudflare - Cloudflare Access JWT validation License MIT - see LICENSE for details.","default_branch":null,"files":null,"tree":[],"storefront":"/r/cmackenzie1","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cmackenzie1/axum-jwt-auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}