Skip to content

feat: add ssoId support to loadSettings and add loadAllSettings for multi-SSO tenants#333

Merged
chris4490 merged 2 commits into
mainfrom
add-ssoId-to-load-tenant-call
Jun 8, 2026
Merged

feat: add ssoId support to loadSettings and add loadAllSettings for multi-SSO tenants#333
chris4490 merged 2 commits into
mainfrom
add-ssoId-to-load-tenant-call

Conversation

@chris4490

Copy link
Copy Markdown
Member

Summary

  • loadSettings(tenantId, ssoId) — adds an optional ssoId parameter to loadSettings. When ssoId is non-blank it is forwarded as a query parameter to the existing GET /v2/mgmt/sso/settings endpoint, allowing callers to retrieve a specific SSO configuration. When blank/null, behavior is identical to the original method.
  • loadSettings(tenantId) — preserved unchanged for backward compatibility; now delegates to the two-argument overload with ssoId=null.
  • loadAllSettings(tenantId) — new method that calls GET /v2/mgmt/sso/settings/all and returns an SSOAllSettingsResponse containing a List<SSOTenantSettingsResponse>, filling the parity gap with the Node.js and Go SDKs.

This closes the parity gap with descope/node-sdk (loadSettings(tenantId, ssoId?) and loadAllSettings(tenantId)) and the equivalent Go SDK methods.

Test plan

  • Unit tests added for loadSettings(tenantId, ssoId) — empty tenantId error, success with ssoId, success with null ssoId
  • Unit tests added for loadAllSettings(tenantId) — empty tenantId error, success case
  • Existing unit and functional tests pass unchanged (backward-compatible delegation)

🤖 Generated with Claude Code

…ulti-SSO tenants

Adds parity with the Node.js and Go SDKs:
- loadSettings(tenantId, ssoId): optional ssoId param to fetch a specific SSO config
- loadAllSettings(tenantId): new method returning all SSO configs for a tenant via /v2/mgmt/sso/settings/all

The existing loadSettings(tenantId) overload is preserved for backward compatibility and
now delegates to the two-argument form with ssoId=null.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@shuni-bot-dev

shuni-bot-dev Bot commented Jun 8, 2026

Copy link
Copy Markdown

🐕 Review complete — View session on Shuni Portal 🐾

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@shuni-bot-dev shuni-bot-dev Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🐕 Shuni's Review

Adds loadSettings(tenantId, ssoId) and loadAllSettings(tenantId) to the SSO management service, closing the parity gap with the Go/Node SDKs. Query params, the /all route, and the SSOSettings JSON property all match the Go SDK exactly, and the original loadSettings(tenantId) stays backward-compatible.

Sniffed out 1 issue:

  • 1 🟠 HIGH: import out of alphabetical order will fail the checkstyle build

See inline comment for details. Otherwise — good bones! Woof!

Comment thread src/main/java/com/descope/sdk/mgmt/SsoService.java
@chris4490

Copy link
Copy Markdown
Member Author

@slavikm this is for Mark43 - mind reviewing?

@chris4490 chris4490 requested a review from slavikm June 8, 2026 14:58
@chris4490 chris4490 merged commit cdd8db2 into main Jun 8, 2026
18 checks passed
@chris4490 chris4490 deleted the add-ssoId-to-load-tenant-call branch June 8, 2026 15:22
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