Problem/Motivation
I don't think separating roles by spaces is a robust enough approach.
We don't know what kind of role notation an API might return. It could be a machine readable name or a human readable name.
As you can imagine I've got the latter and am now in trouble :P
Both seem fair choices to me, but the latter tends to utilize spaces for readability which is kinda a problem now.
After digging through the code I found that the role mappings support quotes to handle role names with spaces.
This should be documented.
Steps to reproduce
Proposed resolution
Use a more robust e.g. a less likely used character as separator.
I'd propose a semicolon (;) I'd consider that to be quite unlikely to be used even in human readable role labels.
This certainly needs an update hook to convert the existing spaces separated values to semicolon separated ones.
Remaining tasks
- ✓ Write Code
- ✓ Review
- ✓ Merge
User interface changes
None
API changes
None
Data model changes
None
Issue fork openid_connect-3506034
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
das-peter commentedOnly when digging through the code I found:
So this is supported but just lacks documentation
Comment #4
das-peter commentedAdded a hint to the role mapping help.
Am not sure how happy I am with the formatting / wording.
Happy for suggestions :)
Comment #6
pfrillingThanks for the contribution! I adjusted the language a bit to help clarify the functionality.
Comment #7
pfrilling