Single logout
One sign-in at Cedar Inc. leaves Avery with a sessionThe ongoing connection between later requests and an earlier sign-in, so you are not asked for your password on every click. It is often tracked with a cookie holding an unpredictable session identifier. at the identity provider and one at every service she opened. Single logout asks each of them to end its own session, and when one does not answer, it reports exactly how far it got.
Three sessions after one sign-in
Avery signs in at Cedar Inc. in the morning, opens the training service, and later the expense service. She typed her password once, but there are now three sessions: Cedar Inc.'s own session on login.cedar.example, the training service's on training.example and the expense service's on expenses.example. Single sign-onSigning in once and then using several applications without entering credentials again, usually because they all rely on the same identity provider. reused the first to create the others. It did not merge them.
At the end of the day Avery is using a shared desk. She chooses Sign out in the training service, and the training service ends its own session. If nothing else happens, the expense service is still signed in, and so is Cedar Inc., so the next person at the desk can open any Cedar Inc. application without a password. Closing the browser tab does not help either; the sessions live on the servers and in cookies that may survive the tab. Local logout and provider sessions described the same gap for OpenID ConnectAn identity layer on top of OAuth 2.0 that lets an application sign people in with an account at another service. It adds the ID token, standard claims, and discovery to the OAuth exchange..
SAMLThe Security Assertion Markup Language, a federation standard widely used for workplace single sign-on, in which the identity provider sends the application a signed assertion about the user.'s Single Logout profile, SLO, coordinates the ending. It cannot reach into each service and delete sessions. It sends each participant a request to end its own, collects their answers, and reports honestly how far it got.
The logout request
The training service ends its session first, then sends Cedar Inc. a LogoutRequest, usually by the HTTP-Redirect binding with the query-string signatureA value made with a private key that lets anyone holding the matching public key check that a message came from the key's holder and has not been changed. It proves origin and integrity; it does not hide the message. that SAML bindings described:
<samlp:LogoutRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
ID="_l3c90a1e57b2" Version="2.0" IssueInstant="2026-10-12T17:42:05Z"
Destination="https://login.cedar.example/saml/slo"
NotOnOrAfter="2026-10-12T17:47:05Z">
<saml:Issuer>https://training.example/saml</saml:Issuer>
<saml:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"
NameQualifier="https://login.cedar.example"
SPNameQualifier="https://training.example/saml">cedar-training-742</saml:NameID>
<samlp:SessionIndex>_s9b31e07</samlp:SessionIndex>
</samlp:LogoutRequest>The request must say whose session is ending. It carries the subject's NameID, exactly as the training service received it, qualifiers included. SAML also allows two alternatives in the same place: BaseID, an extension point for identifiers of other kinds, and EncryptedID, the same NameIDThe value in a SAML assertion's subject that identifies the user to the service provider, in a declared format such as a persistent opaque identifier or an email address. encrypted for the recipient so that only Cedar Inc. can read it. SessionIndex names the specific session at Cedar Inc., the value from the AuthnStatement in Reading an assertion, so that only this session ends and not Avery's session on her own laptop. NotOnOrAfter limits how long the request may be acted on, here five minutes.
A logout initiated by a service providerSAML's name for the application that relies on an identity provider's sign-in, which OpenID Connect calls a relying party. In SCIM, the same term means the application that stores the accounts. always goes to the identity provider, because only Cedar Inc. knows every service Avery signed in to during this session. Cedar Inc. checks the request like any other message: the issuerThe party that creates and signs a token, assertion, or certificate, named in a token's iss claim. A recipient must check that the issuer is exactly the one it expected and trusts. is a known service provider, the signature verifies with that provider's key from its metadata, the destination is Cedar Inc.'s logout endpoint, the time limit has not passed, and the request's ID has not been seen before. Then it ends its own session and propagates the logout, sending its own LogoutRequest to each other participant, here the expense service, naming Avery by the NameID it gave the expense service, cedar-expenses-193. Each service knows her by a different persistent NameID, as NameID and attributes explained, so Cedar Inc. has to remember which NameID and SessionIndex it sent to each.
A partial result has a name
The expense service is down for maintenance and never answers. Cedar Inc. cannot claim that every session ended, and it must not restart its own session just because one participant failed. SAML has a status for exactly this. Cedar Inc. answers the training service:
<samlp:LogoutResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
ID="_m71f2b04d9a6" Version="2.0" IssueInstant="2026-10-12T17:42:19Z"
Destination="https://training.example/saml/slo"
InResponseTo="_l3c90a1e57b2">
<saml:Issuer>https://login.cedar.example</saml:Issuer>
<samlp:Status>
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success">
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:PartialLogout"/>
</samlp:StatusCode>
</samlp:Status>
</samlp:LogoutResponse>The top-level Success says Cedar Inc. processed the request and ended its own session. The second-level PartialLogout says it could not end every other participant's session. InResponseTo ties the answer to the training service's request, which the training service checks before believing it: an old LogoutResponse replayed later says nothing about today's sign-out.
Transport affects what can finish
How Cedar Inc. reaches the expense service decides how often logout finishes. With the front-channel bindings, Redirect or POST, Cedar Inc. sends Avery's browser to each participant in turn and waits for it to come back. If she closes the tab halfway, the chain stops. Some identity providers try to send the requests in parallel from hidden iframes, but, as Front-channel logout showed for OpenID Connect, modern browsers block or partition third-party cookies in iframes, so the expense service often cannot see its own session cookieA small value that a website asks the browser to store and send back with later matching requests. Cookies commonly carry a session identifier, so the site can recognize an ongoing sign-in without your password. there and cannot tell whose session to end. Front-channel logout is fragile by nature.
The SOAP binding uses the back channel: Cedar Inc.'s server calls the expense service's server directly, whether or not a browser is still open. That removes the browser from the path, but it needs network access between the servers, authenticationChecking evidence that someone, or some application, controls an account, such as a password or a passkey. It establishes which account is being used, not what that account may do. of the call, retries with limits, and a record of which participants answered. A service that receives a back-channel request must be able to find the session from the NameID and SessionIndex alone, since there is no cookie.
Whatever the transport, logout endpoints come from metadata, like every other endpoint. A LogoutRequest cannot name the address its answer goes to, and a RelayState that points somewhere is a reference to look up, not a URLA web address, such as https://photos.example/api/albums/42?limit=10. It names how to connect (https), the domain, the path to a particular page or resource, and any extra parameters after the question mark. to follow.
Other credentials have their own lifetimes
Single logout ends sign-in sessions. It does not touch an OAuthA framework that lets a person give an application limited access to their resources at another service, using tokens instead of sharing their password. OAuth is about access; OpenID Connect adds sign-in. access token a reporting tool holds for Avery, an API key she created, or a refresh token in a mobile app. Each has its own issuer and its own way to end. If Avery's laptop were stolen, Cedar Inc. would need to end her sessions and also revoke those other credentials, and its record of the incident should say which of these actually happened.
The same applies the other way. Disabling Avery's account at Cedar Inc. stops every new sign-in at once, but sessions the service providers already created run until they expire, unless logout reaches them. Short application sessions, guided by the SessionNotOnOrAfter hint in the authentication statement, limit how long a missed logout matters.
Show the person what happened
When the training service receives PartialLogout, the worst thing it can do is show a green "You have been signed out". Avery would walk away from the shared desk believing everything was closed. A better page says that Cedar Inc. and the training service are signed out, that the expense service could not be reached, and gives a link to sign out of it directly.
A retry should aim only at the work still unfinished, the expense service, and never restart a session that has already ended. Partial results are a normal outcome of coordinating sessions that different services own, so they belong in the design and in the tests, not in an error handler nobody reads.
Check your understanding
Try these questions before moving on. If an answer isn't right, use the feedback and try again.
Try it in the Lab
- End the provider session and verify each application's resultOpen two SAML application sessions from one sign-in, interrupt one application's logout, keep a truthful partial report, then finish with a fully confirmed logout.