Hi Dimuthu, You need to add those attributes to the claim mapping at " http://wso2.org/oidc/claim" dialect (at Configure -> Claim Management). For example, if you need "organization" attribute, add a new claim mapping to " http://wso2.org/oidc/claim" dialect with values as,
Claim Uri = "organization" Mapped Attribute (s) = "organizationName" Refer the default dialect (http://wso2.org/claims) for Mapped attribute names. On Sat, Apr 18, 2015 at 8:36 AM, DImuthu Upeksha <[email protected] > wrote: > Hi, > > I use WSO2 IS 5.0.0 for authenticate users through OpenID. Currently I > have created some mock users in IS with attributes like First Name, Last > Name, Address, Organization and Country. After I get the access token, I > sent a request to https://localhost:9443/oauth2/userinfo?schema=openid > to get user profile details. > > Output is > > {"phone_number":"0719084638","email":"[email protected]","name":"dimuthu","family_name":"Upeksha","preferred_username":"dimuthu","given_name":"dimuthu","country":"Sri > Lanka"} > > There I can's see some attributes I have put in the profile. For an > example I can't see Last Name and Organization in the response although > they are in actual profile. Instead there are some attributes > like family_name, preferred_username and given_name which are not in the > actual profile. What is the reason for that? Is there a way to configure > which attributes are to be returned in the response message? > > Thanks > Dimuthu > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Pulasthi Mahawithana* Software Engineer WSO2 Inc., http://wso2.com/ Mobile: +94-71-5179022 Blog: http://blog.pulasthi.org
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
