Skip to content

feat(sso): Add authorizeLogout for RP-initiated Single Logout - #1769

Merged
ajworkos merged 1 commit into
mainfrom
devin/1795046558-sso-authorize-logout
Nov 19, 2026
Merged

ajworkos merged 1 commit into
mainfrom
devin/1795046558-sso-authorize-logout

Conversation

@ajworkos

@ajworkos ajworkos commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds workos.sso.authorizeLogout({ profileId }), which wraps POST /sso/logout/authorize (Logout Authorize). It returns { logoutToken, logoutUrl }; redirecting the user to logoutUrl starts RP-initiated Single Logout at the identity provider.

const { logoutUrl } = await workos.sso.authorizeLogout({ profileId: profile.id });

The endpoint is already in the OpenAPI spec, and the generated SDKs have it (authorize_logout in workos-python, SSOService.AuthorizeLogout in workos-go, and Ruby, PHP, .NET, Elixir and Kotlin). Node's SSO module is hand-written, so it never got the method. The workos monorepo e2e spec for OIDC Single Logout (workos/workos#81527) calls this endpoint directly today and can switch to the SDK once this ships.

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[ ] Yes

The API Reference already documents the endpoint.

Link to Devin session: https://workos.devinenterprise.com/sessions/12dbafe90df141639f11b16fa296bec0
Open in Devin Desktop: https://workos.devinenterprise.com/desktop/session/12dbafe90df141639f11b16fa296bec0?variant=devin
Requested by: @ajworkos


🟢 Devin Review found nothing to fix · View findings

Devin Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Original prompt from Adam

This request is from a comment on PR #81527 in github.com/workos/workos. Take over the PR if appropriate.

didn't we determine that we DO NOT need oidc_return_provider_tokens to be true for this to work?

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Adds workos.sso.authorizeLogout({ profileId }) to start identity-provider logout.

  • SSO callers can request a logout URL for a profile.

No actionable issues found.

Reviews (1) · Last reviewed commit: "feat(sso): Add authorizeLogout for RP-in..." · Reviewed by Greptile

@ajworkos
ajworkos requested a review from mattgd November 19, 2026 00:05
@ajworkos
ajworkos merged commit 629b3f0 into main Nov 19, 2026
12 checks passed
@ajworkos
ajworkos deleted the devin/1795046558-sso-authorize-logout branch November 19, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants