| Crates.io | jwkrs |
| lib.rs | jwkrs |
| version | 0.2.0 |
| created_at | 2021-09-29 14:29:45.498105+00 |
| updated_at | 2022-04-08 10:08:41.473022+00 |
| description | A JWK library. |
| homepage | |
| repository | https://github.com/macthestack/jwkrs |
| max_upload_size | |
| id | 458120 |
| size | 11,025 |

Early prototype of a JWK authentication library.
#[tokio::main]
async fn main() {
let config = JwkConfiguration {
jwk_url: "{JWK_URL}".to_string(),
audience: "{AUDIENCE}".to_string(),
issuer: "{ISSUER}".to_string(),
};
let jwk = jwkrs::JwkAuth::new(config);
...
}
See examples for more ideas of how to use it.
This repo is inspired by Lukas May's great blog post https://medium.com/@maylukas/firebase-token-authentication-in-rust-a1885f0982df