Skip to content

feature request: Support for Cascading/Federated Logout to Upstream Identity Providers #9282

Description

@crohncapstan

What problem did you meet?

Logto currently does not support cascading (upstream) logout for Social and OIDC connectors.

We use Logto as a centralized identity broker for multiple applications and authenticate users through federated Identity Providers, including Gov.br (Brazil's national SSO platform). Gov.br requires applications to invoke its end_session_endpoint during logout.

Today, RP-Initiated Logout only terminates the local Logto session. Logto does not call the upstream provider's end_session_endpoint, does not expose the original upstream id_token, and does not provide hooks or lifecycle events that would allow this behavior to be implemented externally.

As a result, every client application would need to implement provider-specific logout logic, maintain access to the upstream id_token_hint, and register its own post-logout redirect URIs with each external IdP. This does not scale and undermines the role of Logto as a centralized federation layer.

Describe what you'd like Logto to have

Add support for optional cascading/federated logout for Social and OIDC connectors.

When RP-Initiated Logout is performed, Logto should be able to:

  1. Persist the upstream id_token obtained during authentication (when provided by the upstream Identity Provider) and associate it with the Logto session.
  2. Detect whether the active session originated from a Social/OIDC connector.
  3. Invoke the connector's end_session_endpoint using the stored id_token as id_token_hint.
  4. Complete the logout flow and redirect the user to the configured post_logout_redirect_uri.

This functionality is particularly important when Logto is used as a centralized identity broker for multiple applications. Some upstream Identity Providers (e.g., Gov.br) have mandatory federated logout requirements, and delegating this responsibility to each client application is not scalable because applications do not have access to the original upstream id_token.

Providing native support for cascading logout would allow Logto to fully manage the authentication lifecycle across upstream and downstream identity providers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureCool stuffstatus/on-our-radarIt's in our mind, we're likely to do it. Further discussion is needed.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions