🔎 id_token_verifier ✅
tokio-friendly, highly configurable, batteries-included OpenID Connect ID Token Verifier in Rust.
Features:
-
Direct or discovery-based JWKS.
-
Caching with fixed expiry and background refresh.
-
Pluggable retry strategy via backoff-config.
-
serde-friendly configuration (loadable from env or other sources).
-
Optional tracing to dig into the verification flow.
Usage:
- Create an instance of IdTokenVerifierDefault using an IdTokenVerifierConfig and a reqwest::Client.
- Define the target claims type with Deserialize:
- Call
IdTokenVerifier#verify::<MyClaims>and get the claims, or handle the error:
match verifier..await