jwks
Fetch and parse JSON Web Key Set (JWKS)
cargo add jwks
Usage
Basic Usage
From a jwks url:
let jwks_url = "https://www.googleapis.com/oauth2/v3/certs";
let jwks = from_jwks_url.await.unwrap;
From a openid config url:
let openid_config_url = "https://accounts.google.com/.well-known/openid-configuration";
let jwks = from_oidc_url.await.unwrap;
JWT Validation
For a complete example of using this library with jsonwebtoken to validate JWTs, see the examples/jwt_validation.rs file.
Running Examples
You can run the examples with:
# Basic usage example
# JWT validation example