Skip to content

[FIX] OIDC: Handle object-shaped role claims in role assignment - #12009

Open
mjansenDatabay wants to merge 1 commit into
ILIAS-eLearning:release_10from
mjansenDatabay:hotfix/10/48270
Open

[FIX] OIDC: Handle object-shaped role claims in role assignment#12009
mjansenDatabay wants to merge 1 commit into
ILIAS-eLearning:release_10from
mjansenDatabay:hotfix/10/48270

Conversation

@mjansenDatabay

Copy link
Copy Markdown
Contributor

parseRoleAssignments() treated any non-array role claim as a string. Providers that deliver roles as a JSON object keyed by role name (e.g. Zitadel) made PHP throw when casting stdClass to string, so login failed instead of assigning roles.

Role claims are now normalized to a list of role names, including object maps, while keeping the existing string, string-list, and SCIM-like array handling.

See: https://mantis.ilias.de/view.php?id=48270

parseRoleAssignments() treated any non-array role claim as a string.
Providers that deliver roles as a JSON object keyed by role name
(e.g. Zitadel) made PHP throw when casting stdClass to string, so
login failed instead of assigning roles.

Role claims are now normalized to a list of role names, including
object maps, while keeping the existing string, string-list, and
SCIM-like array handling.

See: https://mantis.ilias.de/view.php?id=48270
@mjansenDatabay mjansenDatabay added bugfix php Pull requests that update Php code labels Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants