Skip to content

macthestack/jwkrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: HashSet::from(["{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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages