jwkrs

Crates.iojwkrs
lib.rsjwkrs
version0.2.0
sourcesrc
created_at2021-09-29 14:29:45.498105
updated_at2022-04-08 10:08:41.473022
descriptionA JWK library.
homepage
repositoryhttps://github.com/macthestack/jwkrs
max_upload_size
id458120
size11,025
Martin Svensson (macthestack)

documentation

README

jwkrs

Crates.io

jwkrs

Early prototype of a JWK authentication library.

How to use:

#[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.

Thanks to:

This repo is inspired by Lukas May's great blog post https://medium.com/@maylukas/firebase-token-authentication-in-rust-a1885f0982df

Commit count: 21

cargo fmt