Skip to content

fix: use profile IDs for SSO logout - #606

Draft
hyeomans wants to merge 1 commit into
workos:mainfrom
hyeomans:fix/sso-logout-profile-id
Draft

fix: use profile IDs for SSO logout#606
hyeomans wants to merge 1 commit into
workos:mainfrom
hyeomans:fix/sso-logout-profile-id

Conversation

@hyeomans

@hyeomans hyeomans commented Aug 20, 2026

Copy link
Copy Markdown

Description

The SSO logout endpoint requires a profile ID. The helper incorrectly asked callers for a session ID.

Add ProfileID and send it to the logout authorization endpoint. Keep SessionID as a deprecated fallback for existing callers. Return an error when the caller supplies no ID or supplies conflicting IDs.

Update the tests to check the request body and the compatibility behavior.

Documentation

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

[ ] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

Closes #605

The SSO logout endpoint requires a profile ID. The helper incorrectly asked callers for a session ID.

Add ProfileID and send it to the logout authorization endpoint. Keep SessionID as a deprecated fallback for existing callers. Return an error when the caller supplies no ID or supplies conflicting IDs.

Update the tests to check the request body and the compatibility behavior.
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.

SSOLogoutParams asks for a session ID, but the endpoint requires a profile ID

1 participant