Skip to content

feat(sso): allow disabling SAML AuthnRequest signing per SSO configuration - #805

Merged
dorsha merged 2 commits into
mainfrom
feat/saml-disable-request-signing
Sep 1, 2026
Merged

feat(sso): allow disabling SAML AuthnRequest signing per SSO configuration#805
dorsha merged 2 commits into
mainfrom
feat/saml-disable-request-signing

Conversation

@dorsha

@dorsha dorsha commented Sep 1, 2026

Copy link
Copy Markdown
Member

Description

Issue: https://github.com/descope/etc/issues/18144
go-sdk: descope/go-sdk#842 · python-sdk: descope/python-sdk#1684

Descope signs the SAML AuthnRequest it sends to a tenant's IdP. A few IdPs (NetIQ Access Manager among them) reject a signed request outright when their trusted-provider entry holds no signing certificate for Descope, and until now there was no way to opt out.

This exposes the new per-SSO-configuration flag:

  • disableSignRequest?: boolean on SSOSAMLSettings and SSOSAMLByMetadataSettings.
  • disableSignRequest?: boolean on SSOSAMLSettingsResponse, so the stored value is readable.

The settings object is posted through as-is, so an omitted flag means the server default — signed — which is exactly the behavior every existing caller has today.

…ation

Descope always signs the SAML AuthnRequest it sends to a tenant's IdP. A few
IdPs (NetIQ Access Manager among them) reject a signed request outright when
their trusted-provider entry holds no signing certificate for Descope, and
until now there was no way to opt out.

Adds disableSignRequest to SSOSAMLSettings and SSOSAMLByMetadataSettings, and
exposes the stored value on SSOSAMLSettingsResponse.

Defaults to false, so every existing configuration keeps signing as it does
today.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@shuni-bot

shuni-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🐕 Review complete — View session on Shuni Portal 🐾

🤖 Model: claude-sonnet-5

@shuni-bot

shuni-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🐕 Suggested Reviewers

Review Strategy: Prioritizing coverage of new SSO flags (types) and comprehensive test validation (sso.test.ts). Requesting input from a functional reviewer each for types changes (talaharoni/aviadl) and test changes (itaihanski).

Reviewer Reason
talaharoni Types changes in lib/management/types.ts introduce the new configuration field. Their expertise in type definitions will ensure the new flag is properly integrated into the type system.
aviadl Same reasoning as 0; helpful to have a second opinion on the types changes in types.ts to ensure alignment on the new flag definition.
itaihanski Test changes in lib/management/sso.test.ts need thorough validation of how the new per-SSO-configuration flag works in the test suite.

Suggested by Shuni based on git history and PR context. Names are not @-mentioned to avoid notifying anyone — request a review from whoever fits best.

@dorsha
dorsha requested a review from aviadl September 1, 2026 07:55

@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

Adds an optional disableSignRequest flag to SSOSAMLSettings, SSOSAMLByMetadataSettings, and SSOSAMLSettingsResponse, purely additive typing with matching tests and a README example.

Actionable comments posted: 0

🧹 Nitpick comments: 1

Merge risk: 🟢 Low: additive optional field passed through as-is by existing configureSAMLSettings/configureSAMLByMetadata code, no logic changes required, and both variants are covered by new tests.

See inline comments for details.

🤖 Model: claude-sonnet-5


Review scope: Full review

Reviewed files (3)
  • README.md
  • lib/management/sso.test.ts
  • lib/management/types.ts

Comment thread README.md Outdated
The object shorthand produced idpURL/entityID, but SSOSAMLSettings declares
idpUrl/entityId, so the example did not compile when copied into real code.
Rename the two declared variables so the shorthand yields the right property
names, which fixes the snippet this PR added and the pre-existing one above it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@shuni-bot

shuni-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🐕 Review complete — View session on Shuni Portal 🐾

🤖 Model: claude-sonnet-5

@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 issues found.

🤖 Model: claude-sonnet-5


Review scope: Incremental re-review

Reviewed new changes (1)
  • README.md
Previously reviewed and unchanged: 2 files.

@dorsha
dorsha merged commit 45ad931 into main Sep 1, 2026
29 checks passed
@dorsha
dorsha deleted the feat/saml-disable-request-signing branch September 1, 2026 09:28
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.

2 participants