-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Hello,
I've a project with oidcop as frontend and saml backend.
When I call the /userinfo endpoint the custom claims are returned as array even if the values in the saml response was a string.
My suggestion is to change the following row:
| (name, combine_values_by_claim[name](values)) for name, values in claim_items |
and adding a default combine function for the claims not defined in the claims.py file:
(name, combine_values_by_claim.get(name, combine_select_first_value)(values)) for name, values in claim_items
If this change makes sense to you I'm opening a PR.
Cheers
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels