https://github.com/cdriehuys/axum-jwks
Use a JSON Web Key Set (JWKS) to verify JWTs in Axum
https://github.com/cdriehuys/axum-jwks
axum jwks jwt rust
Last synced: 7 months ago
JSON representation
Use a JSON Web Key Set (JWKS) to verify JWTs in Axum
- Host: GitHub
- URL: https://github.com/cdriehuys/axum-jwks
- Owner: cdriehuys
- License: mit
- Created: 2023-03-28T14:08:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-16T20:08:02.000Z (about 1 year ago)
- Last Synced: 2024-11-04T09:06:23.962Z (12 months ago)
- Topics: axum, jwks, jwt, rust
- Language: Rust
- Homepage:
- Size: 41 KB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# axum-jwks
[](https://github.com/cdriehuys/axum-jwks/actions/workflows/rust.yml)
[](https://crates.io/crates/axum-jwks)
[](https://docs.rs/axum-jwks)Use a [JSON Web Key Set (JWKS)][jwks] to verify JWTs in [Axum][axum].
# Features
* Use an openid-configuration to get the setup from the Authorization Server.
* Pull a JWKS directly from an Authorization Server
* Verify JWTs signed by any key in the JWKS and provided as a bearer token in
the `Authorization` headerFor more information, see the [crate documentation][axum-jwks-docs].
[axum]: https://github.com/tokio-rs/axum
[axum-jwks-docs]: https://docs.rs/axum-jwks
[jwks]: https://auth0.com/docs/secure/tokens/json-web-tokens/json-web-key-sets