feat(xaa): expose the read-only project-level audience on the XAA load response - #801
Conversation
…d response loadXAASettings / loadAllXAASettings now surface the audience a requesting application must present in its ID-JAG token, so callers read the same value the console and the SSO setup suite show instead of building it by hand. It is project-level and names no tenant - the IdP sends the tenant in the token's aud_tenant claim. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
🐕 Review complete — View session on Shuni Portal 🐾 |
🐕 Suggested ReviewersThis PR exposes a read-only
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. |
There was a problem hiding this comment.
🐕 Shuni Review
Adds a read-only audience field to XAASettingsResponse, which passes through untouched via the existing transformXAASettingsResponse and is covered by a test asserting the round-trip value.
Actionable comments posted: 0
Merge risk: 🟢 Low: additive optional field on the load response, no transform logic changes, correctly excluded from the write-side XAASettings type, and covered by a test.
Review scope: Full review
Reviewed files (2)
lib/management/sso.test.tslib/management/types.ts
Related Issues
Required for:
https://github.com/descope/etc/issues/18013
Related PRs
Upstream PRs
Related PRs
In a Nutshell
audienceon the XAA load responseDescription
Loading Cross-App Access settings now also returns the audience a requesting application has to present in its ID-JAG token, so callers read the same value the console shows instead of building it themselves. It has no tenant in it - the identity provider sends the tenant in the token's
aud_tenantclaim.Must