OIDC Connection: Missing profile email in /api/oauth/userinfo endpoint
Found a bug? Please fill out the sections below. 👍
Issue Summary
We attempted to connect to the OIDC provider (Entra in our case). The response from api/oauth/userinfo does not provide the email attribute. After some debugging, we found that the email is parsed from the Entra user's Contact information attribute, but only if it is present. We are unsure if this is the expected behavior. The email in the contact information in Entra is not filled out by default, and there is also the possibility to add multiple emails.
Steps to Reproduce
- Create connection in jackson dashboard
- Select OIDC and provide all necessary fields to entra OIDC
- try to use API
Expected behaviour could be, that email should be parsed properly from user in that case. Because entra user is having email and not need to be provided in entra users contact information.
Hi @MarcelGeo, the mapping relies on the IdP (specifically on how they map the email scope) and we have no control over it since we can only work with the attributes sent over to us. We will check if it is possible to look for this attribute elsewhere (assuming the IdP is sending it to us).
Thanks @deepakprabhakara for the quick response :)