Repository navigation
feat(sso): Add authorizeLogout for RP-initiated Single Logout - #1769
Merged
Merged
Conversation
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
Original prompt from Adam
|
Contributor
[Medium impact] The PR appears safe to merge. SummaryAdds
No actionable issues found. Reviews (1) · Last reviewed commit: "feat(sso): Add authorizeLogout for RP-in..." · Reviewed by Greptile |
mattgd
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
workos.sso.authorizeLogout({ profileId }), which wrapsPOST /sso/logout/authorize(Logout Authorize). It returns{ logoutToken, logoutUrl }; redirecting the user tologoutUrlstarts RP-initiated Single Logout at the identity provider.The endpoint is already in the OpenAPI spec, and the generated SDKs have it (
authorize_logoutin workos-python,SSOService.AuthorizeLogoutin 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.
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