-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non standard claims returned as array #24
Comments
Ciao Emanuele, please can you say in this thread which problem you want to solve, I mean a clear statement of the error/bug to start the discussion with the developers |
For reference my project is based on https://github.com/italia/Satosa-Saml2Spid/. Given a SAML Response with the attributes:
At the end of the authentication process, when I call the /userinfo endpoint the claims are:
Both "name" and "spidCode" are supposed to be string values and so I'm expecting the spid_code in the userinfo to be a string a not an array with a string. Diggin in the code I think the line in the above comment is the reason of the custom claims (like spid_code) to be returned as an array. |
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:
SATOSA-oidcop/satosa_oidcop/core/claims.py
Line 45 in a1984f8
and adding a default combine function for the claims not defined in the claims.py file:
If this change makes sense to you I'm opening a PR.
Cheers
The text was updated successfully, but these errors were encountered: