You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our upstream ID provider offers groups as claim in the ID Token formatted as groups: "|group1|group2|".
Since groups are parsed as []interface{}, the claim is never found and the string is neither parsed, nor passed to any client.
I'd like to suggest optionally parsing the groups claim as csv with configurable separator e.g. along the lines of
vs := claims[groupsKey]
groupsStr, ok := vs.(string)
if ok {
for _, v := range strings.Split(groupsStr, c.groupsSep) {
if v == "" {
continue
}
groups = append(groups, v)
}
}
Ideally, the solution would allow custom parsing for any separate claimMapping.
Is there a preferred way or suggestion how to achieve the desired result?
The text was updated successfully, but these errors were encountered:
Hello
Our upstream ID provider offers groups as claim in the ID Token formatted as groups: "|group1|group2|".
Since groups are parsed as []interface{}, the claim is never found and the string is neither parsed, nor passed to any client.
I'd like to suggest optionally parsing the groups claim as csv with configurable separator e.g. along the lines of
Ideally, the solution would allow custom parsing for any separate claimMapping.
Is there a preferred way or suggestion how to achieve the desired result?
The text was updated successfully, but these errors were encountered: