A minimal OpenID Connect client library, part of the
axum-security workspace and
layered on axum-security-oauth2
for the OAuth2 half of the flow.
Compared to the openidconnect
crate this one has no typestate and no type parameters: ID tokens are
verified with a single concrete [IdTokenVerifier], and the standard claim
set is a plain [OidcClaims] struct with &str fields plus an extra map
for everything nonstandard.
This first slice is the verification core: given a JWK set and an ID
token, [IdTokenVerifier::verify] checks the signature (with algorithm
allow-listing), the iss/aud/exp/nbf claims, and the nonce, using
[jsonwebtoken] on top of aws-lc-rs. Discovery, JWKS fetching/caching, the
login flow, and RP-initiated logout are layered on in later phases.
Example
use ;
# #
Features
jiff/chrono/time— add typed timestamp accessors to [OidcClaims] / [UtcTimestamp]. Off by default; the core exposes raw unix seconds (i64).