Beta

Create a tenant

A new tenant starts with its own users, OAuth settings, audit history and logs. You are its first Tenant Admin.

Single logout

One sign-in at Cedar Inc. leaves Avery with a session 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-on 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 Connect.

SAML'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 signature that SAML bindings described:

xml
<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 NameID 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 provider 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 issuer 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:

xml
<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.

A logout that starts at the training service, goes to Cedar Inc. and is propagated to the expense service. When the expense service does not answer, the result is reported as PartialLogout rather than as a complete 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 cookie 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, authentication 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 URL to follow.

Other credentials have their own lifetimes

Single logout ends sign-in sessions. It does not touch an OAuth 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.

Cedar Inc. ends its own session but the expense service never confirms. What should its LogoutResponse to the training service say? 1 of 3

Choose one answer.

Avery signs out in the training service. Where does the training service send its LogoutRequest, and why? 2 of 3

Choose one answer.

Avery is signed in at Cedar Inc. on her own laptop and at a shared desk. She signs out of the training service at the desk. What keeps her laptop session open? 3 of 3

Choose one answer.

Try it in the Lab

We value your privacy

We use cookies and similar technologies to enhance your browsing experience, and analytics to understand our traffic. By clicking "Allow all", you consent to optional analytics. Cookie Policy

Learn identity