Skip to main content

Module logout

Module logout 

Source
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§

EndSessionParams
What to put on the logout URL.
LogoutToken
What a verified logout token tells the relying party.
LogoutTokenError
A back-channel logout token that must not be acted on. reason says which rule it broke; the message is fixed.

Enums§

LogoutFailure
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 iat this 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. now is unix seconds.
is_logout_typ
Whether a JOSE typ names a logout token: logout+jwt or application/logout+jwt, in any letter case, and with any parameters after a ;.