Skip to content

Comments

Fix OIDC group-to-role sync for groups containing spaces#6022

Closed
SebastienMerv wants to merge 1 commit intoBookStackApp:developmentfrom
SebastienMerv:fix/oidc-groups-with-spaces
Closed

Fix OIDC group-to-role sync for groups containing spaces#6022
SebastienMerv wants to merge 1 commit intoBookStackApp:developmentfrom
SebastienMerv:fix/oidc-groups-with-spaces

Conversation

@SebastienMerv
Copy link

Fix issue #6021

Normalize spaces to hyphens in parseRoleExternalAuthId() to match the same normalization applied to incoming group names in matchGroupsToSystemsRoles(), fixing group-to-role mapping for groups whose names contain spaces.

Normalize spaces to hyphens in parseRoleExternalAuthId() to match
the same normalization applied to incoming group names in
matchGroupsToSystemsRoles(), fixing group-to-role mapping for
groups whose names contain spaces.
@ssddanbrown
Copy link
Member

Thanks for offering this @SebastienMerv but I'd be wary about changing the behaviour here, just in case of potential compatibility edge cases for existing values/environments, and to be safe in scenarios where users may assume the field is space separated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants