OIDC address
claim is incorrectly formatted in the ID token when it is multi-valued attribute
#21658
Labels
address
claim is incorrectly formatted in the ID token when it is multi-valued attribute
#21658
Describe the issue:
$title
issue happens because [1] handles theaddress
claim asJSONObject
but in [2] it's convertedtoString
.[1] https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/35d2b91f19d322dd2e923025d1c90c257cee024d/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/OpenIDConnectClaimFilterImpl.java#L388
[2] https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/35d2b91f19d322dd2e923025d1c90c257cee024d/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/DefaultOIDCClaimsCallbackHandler.java#L627
How to reproduce:
http://wso2.org/oidc/claim
openid
address1:qwerty,address2:Medavakkam,city:Chennai,state:Tamilnadu,country:India
Expected behavior:
Introspecting the token should show the multi-valued address as a properly formatted array:
Suggestion:
Consider changing below code statements in [2],
into the following:
The text was updated successfully, but these errors were encountered: