Expand description
Logout: the RP-initiated logout URL (OIDC RP-Initiated Logout 1.0) and the claim rules for back-channel logout tokens (OIDC Back-Channel Logout 1.0, sections 2.4 and 2.6).
The service ends a hosted-page session at /oauth/end_session and, for every client of that session that
registered a backchannel_logout_uri, POSTs logout_token=<jwt> there (services/backchannel_logout.rs). The token
is signed with the key the ID tokens use, so it verifies against the same JWKS:
MultiIssuerVerifier::verify_logout_token does that and then
applies check_logout_claims.
Errors here are fixed sentences. They never carry the token, an issuer, a key id or any other value taken from the token: the token comes from the network.
Structs§
- EndSession
Params - What to put on the logout URL.
- Logout
Token - What a verified logout token tells the relying party.
- Logout
Token Error - A back-channel logout token that must not be acted on.
reasonsays which rule it broke; the message is fixed.
Enums§
- Logout
Failure - Which rule a rejected logout token broke.
Constants§
- BACKCHANNEL_
LOGOUT_ EVENT - DEFAULT_
LOGOUT_ TOKEN_ MAX_ AGE_ SECONDS - A logout token the service signed is not accepted when it was issued longer ago than this (the service sends for ten minutes).
- LOGOUT_
TOKEN_ FUTURE_ SECONDS - An
iatthis far ahead of the local clock is tolerated, plus the verifier’s clock skew.
Functions§
- build_
end_ session_ url - The URL to send the person’s browser to in order to end their session at the service.
- check_
logout_ claims - The checks on a logout token whose signature and expiry already verified.
nowis unix seconds. - is_
logout_ typ - Whether a JOSE
typnames a logout token:logout+jwtorapplication/logout+jwt, in any letter case, and with any parameters after a;.