mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2025-12-12 16:10:06 +01:00
Tonic and Axum are quite closely related; From a tower perspective the main difference is in the Error type in the body for their Response. This refactor the code a little bit and add conversions from AuthError to a tonic's Response such that the exact same code can be used by both Axum and tonic services Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
36 lines
977 B
Markdown
36 lines
977 B
Markdown
# jwt-authorizer
|
|
|
|
JWT authorizer Layer for Axum and Tonic.
|
|
|
|
[](https://github.com/tokio-rs/cduvray/jwt-authorizer/workflows/ci.yml)
|
|
[](https://crates.io/crates/jwt-authorizer)
|
|
[](https://docs.rs/jwt-authorizer)
|
|
|
|
## 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
|
|
- Claims checker
|
|
- Tracing support (error logging)
|
|
|
|
## Usage
|
|
|
|
See documentation of the [`jwt-authorizer`](./jwt-authorizer/docs/README.md) module or the [`demo-server`](./demo-server/) example.
|
|
|
|
## Development
|
|
|
|
Minimum supported Rust version is 1.65.
|
|
|
|
## Contributing
|
|
|
|
Contributions are wellcome!
|
|
|
|
## License
|
|
|
|
MIT
|