--- title: "Single Logout (SLO) (Local development)" slug: "single-logout-slo-local-development" tags: ["Local Development"] updated: 2025-07-14T21:27:25Z published: 2025-07-14T21:27:25Z canonical: "legacy-docs.strata.io/single-logout-slo-local-development" --- > ## Documentation Index > Fetch the complete documentation index at: https://legacy-docs.strata.io/llms.txt > Use this file to discover all available pages before exploring further. # Single Logout (SLO) (Local development) Single logout can be used to logout users from the orchestrator and its dependent IDPs. An example sequence diagram of the SLO flow can be found below. ![](https://cdn.document360.io/7b34828b-3c04-415a-b0b8-8c03e8792c34/Images/Documentation/maverics_slo_sequence_diagram(1).png?sv=2026-02-06&spr=https&st=2026-11-26T15%3A54%3A35Z&se=2026-11-26T16%3A54%3A35Z&sr=b&sp=r&sig=NYzIc6r77u%2BiSFIIorO0etVBB9o5PxuhTf9zO3YGTdA%3D) By default, the orchestrator does the following upon logout: - Expires all cookies associated with the request - Evicts the session - Logs the user out of the IDPs associated with the session > [!WARNING] > SLO functionality may be disrupted if the orchestrator's config is reloaded or the orchestrator is restarted. During a config reload or orchestrator restart event, existing sessions will be terminated which inhibits federated logouts. To mitigate the risk of users not being logged out at federated IDPs, set a short session lifetime. ## Configuration options ### Logout URL `logoutURL` is the endpoint clients call to trigger a logout. This endpoint is hosted by the orchestrator and must reside on the same domain. > [!NOTE] > Ensure all `connectors` that are used as an IDP define the necessary logout related fields. ### Post Logout `postLogout` defines optional actions the orchestrator can execute after single-logout is complete. #### Post-Logout Redirect URL `redirectURL` is an optional field used to define the URL to redirect the client to after the single logout process is complete. If not specified, the client will be shown a message that logout has completed successfully. #### Post-Logout Service Extension `postLogoutSE` is an optional field used to define a Service Extension that controls the behavior after a logout has occurred. This Service Extension is executed before the redirect to the `redirectURL` occurs. ## Example Configurations ### Base Configuration ```yaml singleLogout:  logoutURL: https://idp.enterprise.com/single-logout  postLogout:    redirectURL : https://enterprise.com/index.html ``` ### `postLogoutSE` Service Extension This Service Extension enables the user to add custom behavior as part of the single logout experience. It is executed after the logout with the IDPs occur. If not defined, the orchestrator will use the default behavior of dropping all the cookies associated in that request. Below is an example of dropping a specific cookie as part of the single logout process. ```yaml singleLogout:  logoutURL: https://idp.enterprise.com/single-logout  postLogout:    postLogoutSE:      funcName: PostLogout      file: /etc/maverics/extensions/postLogout.go ``` `/etc/maverics/extensions/postLogout.go` ```go package main import (    "net/http"        "github.com/strata-io/service-extension/orchestrator" ) func PostLogout(    api orchestrator.Orchestrator,    rw http.ResponseWriter,    req *http.Request, ) {    var logger = api.Logger()    logger.Info("msg", "starting postLogoutSE")    for _, c := range req.Cookies() {        if c.Name == "storage" {            http.SetCookie(rw, &http.Cookie{                Name:   c.Name,                Path:   "/",                MaxAge: -1,            })        }    }    logger.Info("msg", "successfully completed postLogoutSE")    http.Redirect(rw, req, "https://enterprise.com/index.html", http.StatusFound) } ```