JWT authorizer Layer for Axum.
Tonic support is temporarily removed (waiting upgrade to hyper 1 and axum 0.7 hyperium/tonic/#1584)
- JWT token verification (Bearer)
- Algoritms: ECDSA, RSA, EdDSA, HMAC
- JWKS endpoint support
- Configurable refresh
- OpenId Connect Discovery
- Validation
- exp, nbf, iss, aud
- Claims extraction
- into custom deserializable structs or into
RegisteredClaims
(default)
- into custom deserializable structs or into
- Claims checker
- Tracing support (error logging)
tonic support
See documentation of the jwt-authorizer
module or the demo-server
example.
Minimum supported Rust version is 1.65.
Contributions are wellcome!
MIT