Skip to content

Non standard claims returned as array #24

@ebusi

Description

@ebusi

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions