Skip to main content

Module id_token

Module id_token 

Source
Expand description

Verifying an OIDC ID token on the client: an owner’s client checks, by itself, the sign-in a join request rests on, without trusting the cache server.

Structs§

KeySet
The usable signing keys of an issuer’s JWKS document.
SignedIn
What a verified ID token says about the person.

Constants§

MAX_TOKEN_BYTES
Largest token accepted.

Functions§

verify
Verifies token: an RS256, ES256 or EdDSA signature by one of keys, iss exactly issuer, issued to audience (aud holds it, and azp is it when aud has several members or azp is present), and iat at most max_age_secs before now. An expired token passes: the question is what the person signed then, not whether the token still opens a session. Every refusal is a short reason.