2023-01-08 13:45:21 +01:00
|
|
|
# jwt-authorizer
|
|
|
|
|
|
2023-05-19 09:14:53 +02:00
|
|
|
JWT authorizer Layer for Axum.
|
2023-01-08 13:45:21 +01:00
|
|
|
|
2023-02-27 08:37:36 +01:00
|
|
|
[](https://github.com/tokio-rs/cduvray/jwt-authorizer/workflows/ci.yml)
|
|
|
|
|
[](https://crates.io/crates/jwt-authorizer)
|
|
|
|
|
[](https://docs.rs/jwt-authorizer)
|
|
|
|
|
|
2023-01-08 13:45:21 +01:00
|
|
|
## Features
|
|
|
|
|
|
2023-01-25 08:38:09 +01:00
|
|
|
- JWT token verification (Bearer)
|
2023-02-26 20:30:55 +01:00
|
|
|
- Algoritms: ECDSA, RSA, EdDSA, HMAC
|
2023-01-25 08:38:09 +01:00
|
|
|
- JWKS endpoint support
|
|
|
|
|
- Configurable refresh
|
2023-02-26 20:30:55 +01:00
|
|
|
- OpenId Connect Discovery
|
|
|
|
|
- Validation
|
|
|
|
|
- exp, nbf, iss, aud
|
2023-01-08 13:45:21 +01:00
|
|
|
- Claims extraction
|
2023-05-19 09:14:53 +02:00
|
|
|
- into custom deserializable structs or into `RegisteredClaims` (default)
|
2023-01-21 08:34:11 +01:00
|
|
|
- Claims checker
|
2023-02-26 20:30:55 +01:00
|
|
|
- Tracing support (error logging)
|
2023-05-19 09:14:53 +02:00
|
|
|
- *tonic* support
|
2023-01-08 13:45:21 +01:00
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
See documentation of the [`jwt-authorizer`](./jwt-authorizer/docs/README.md) module or the [`demo-server`](./demo-server/) example.
|
|
|
|
|
|
2023-02-13 08:40:22 +01:00
|
|
|
## Development
|
2023-01-08 13:45:21 +01:00
|
|
|
|
2023-02-26 20:30:55 +01:00
|
|
|
Minimum supported Rust version is 1.65.
|
2023-01-08 13:45:21 +01:00
|
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
|
|
|
|
Contributions are wellcome!
|
|
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
2023-02-13 08:40:22 +01:00
|
|
|
MIT
|