mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2025-12-12 08:00:07 +01:00
JWT authorization layer for Axum.
Nothing in the layer implementation actually depends on the Request's body type. So generalise over the body type, allowing the service implementation not longer be tied to axum specifically. |
||
|---|---|---|
| .github/workflows | ||
| config | ||
| demo-server | ||
| jwt-authorizer | ||
| .editorconfig | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CHANGELOG.md | ||
| LICENSE | ||
| README.md | ||
| rustfmt.toml | ||
jwt-authorizer
JWT authorizer Layer for Axum.
Features
- 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
Usage
See documentation of the jwt-authorizer module or the demo-server example.
Development
Minimum supported Rust version is 1.65.
Contributing
Contributions are wellcome!
License
MIT