Skip to content

feat(sso): tenant SAML single logout - #1778

Open
dorsha wants to merge 1 commit into
mainfrom
feat/tenant-saml-slo
Open

dorsha wants to merge 1 commit into
mainfrom
feat/tenant-saml-slo

Conversation

@dorsha

@dorsha dorsha commented Nov 22, 2026

Copy link
Copy Markdown
Member

Related Issues

Required for:
https://github.com/descope/etc/issues/20773

Description

A tenant's SAML SSO configuration can turn on SAML Single Logout (SLO), and an app's logout can then log the user out at the identity provider (IdP) too. SSOSAMLSettings and SSOSAMLSettingsByMetadata get single_logout_enabled and idp_single_logout_url, sent only when set so existing callers keep what is stored. logout and logout_all (sync and async) get sso_logout and redirect_url; with sso_logout, the response JSON holds ssoLogoutUrl when there is an IdP logout to do, and the app sends the browser there.

In a Nutshell

  • SSOSAMLSettings / SSOSAMLSettingsByMetadata: single_logout_enabled, idp_single_logout_url (None keeps the stored value, empty URL clears it)
  • logout / logout_all (sync and async): sso_logout, redirect_url; read ssoLogoutUrl from response.json()
  • Without the new arguments the logout body stays {}, as before
  • load_settings docs: singleLogoutEnabled, idpSingleLogoutUrl, spSingleLogoutUrl under saml
  • README examples

Must

  • Tests
  • Documentation (if applicable)

🤖 Generated with Claude Code

SSOSAMLSettings and SSOSAMLSettingsByMetadata get single_logout_enabled and
idp_single_logout_url. Each is sent only when set, so a configure call that
leaves them out keeps the stored values. An empty idp_single_logout_url
clears it (it is then taken from the IdP metadata).

logout and logout_all (sync and async) get sso_logout and redirect_url.
With sso_logout, the response JSON holds ssoLogoutUrl when the session
signed in through a SAML SSO configuration with single logout on: the app
sends the browser there to log the user out at the IdP too. Without the new
arguments the request body stays empty, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shuni-bot

shuni-bot Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

🐕 Shuni Review

No new issues found.

Approval outcome: APPROVED
Reason: Full review completed with no findings and clear review threads.

🤖 Model: claude-opus-5.5 · Effort: medium


Review scope: Full review

Reviewed files (9)
  • README.md
  • descope/_client_base.py
  • descope/descope_client.py
  • descope/descope_client_async.py
  • descope/management/_sso_settings_base.py
  • descope/management/sso_settings.py
  • descope/management/sso_settings_async.py
  • tests/management/test_sso_settings.py
  • tests/test_descope_client.py

🐕 Review complete — View session on Shuni Portal 🐾

🤖 Model: claude-opus-5.5 · Effort: medium

@shuni-bot shuni-bot 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.

🐕 Shuni review: no new findings. Every changed file in this pull request was reviewed.

The full review summary is in Shuni's sticky review comment on this pull request.

@dorsha dorsha changed the title feat(sso): SAML single logout for tenant SSO feat(sso): tenant SAML single logout Nov 22, 2026
@github-actions

Copy link
Copy Markdown

Coverage report

The coverage rate went from 98.43% to 98.44% ⬆️

100% of new lines are covered.

Diff Coverage details (click to unfold)

descope/management/sso_settings.py

100% of new lines are covered (100% of the complete file).

descope/_client_base.py

100% of new lines are covered (96.9% of the complete file).

descope/descope_client.py

100% of new lines are covered (97.65% of the complete file).

descope/descope_client_async.py

100% of new lines are covered (99.35% of the complete file).

descope/management/_sso_settings_base.py

100% of new lines are covered (99.05% of the complete file).

@dorsha

dorsha commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

@shuni review

@shuni-bot shuni-bot 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.

🐕 Shuni review: no new findings. Every changed file in this pull request was reviewed.

The full review summary is in Shuni's sticky review comment on this pull request.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant