fix(auth): begär resourceowner-scope så tenant-claim finns #435

Merged
admin merged 1 commits from fix/oidc-tenant-scope into main 2026-11-02 15:08:46 +00:00
Owner

Zitadel tar inte med urn:zitadel:iam:org:id i id_token för standard-scope. Lägger till urn:zitadel:iam:user:resourceowner så att användarens org-id kommer med (samma claim som deriveTenantId redan läser). Loggar endast claim-nycklar — aldrig värden — om tenant fortfarande saknas.

Zitadel tar inte med `urn:zitadel:iam:org:id` i id_token för standard-scope. Lägger till `urn:zitadel:iam:user:resourceowner` så att användarens org-id kommer med (samma claim som `deriveTenantId` redan läser). Loggar endast claim-nycklar — aldrig värden — om tenant fortfarande saknas.
admin added 1 commit 2026-11-02 15:07:26 +00:00
fix(auth): request the resourceowner scope so the tenant claim is present
CI (SIAX Cloud) / integration (push) Skipped
CI (SIAX Cloud) / sonar (push) Skipped
CI (SIAX Cloud) / sonar (pull_request) Skipped
masterplan-lock / check (pull_request) Successful in 5s
masterplan-lock / check (push) Successful in 5s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 17s
CI (SIAX Cloud) / security (push) Successful in 18s
CI (SIAX Cloud) / security (pull_request) Successful in 20s
Security Scan (SIAX Cloud) / security (push) Successful in 30s
CI (SIAX Cloud) / integration (pull_request) Successful in 31s
CI (SIAX Cloud) / quality (pull_request) Successful in 42s
CI (SIAX Cloud) / quality (push) Successful in 54s
7d8ed9bfba
Zitadel omits urn:zitadel:iam:org:id from the id_token for the default scopes.
Requesting urn:zitadel:iam:user:resourceowner yields the user's org id, which
deriveTenantId already understands. Also log claim keys (never values) when the
tenant is still absent.
CODEOWNERS rules requested review from sax3l 2026-11-02 15:07:26 +00:00
admin scheduled this pull request to auto merge when all checks succeed 2026-11-02 15:08:43 +00:00
admin merged commit 9ed9cf0f73 into main 2026-11-02 15:08:46 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/0pt#435