1
votes

In WSO2 IS admin console, we are trying to set the user claims for a service provider under 'Claim Configuration'.

We selected the Claim mapping Dialect as 'Define Custom Claim Dialect' and added Local claims as :

But when we perform a curl with /oauth2/userinfo, it just gives us last name and email. But first name is not being returned.

Returned User Info:

{"sub":"[email protected]","family_name":"abcFN","email":"[email protected]"}

Any pointers for the issue will be helpful.

2

2 Answers

2
votes

There is actually an error in the mapping of the given name attribute between the oidc claim and the wso2 claim :

In the management console, go to Home > Identity > Claims > List > claim.view Click on http://wso2.org/oidc/claim in the Available Claims Dialect list

Change the mapping for given_name to Mapped Local Claim : http://wso2.org/claims/givenname

0
votes

In order to get the first name through user info endpoint,you should have an OIDC claim mapping with http://wso2.org/claims/givenname.

Could you please check whether your given_name claim under oidc dialect has a mapping with http://wso2.org/claims/givenname.