Hi Monika,

Have you added requested claims in the SP claim configurations section? If
you haven't added any requested claims, returning only the subject from the
userinfo endpoint is expected..

Try adding requested claims in the SP.

Regards,

On Fri, Feb 16, 2018 at 3:29 PM, Monika Sharma <monika.sha...@india.nec.com>
wrote:

> Hello sir,
>
>
>
> I have a query regarding the https://wso2.org/jira/browse/IDENTITY-4250  bug
> of wso2 identity server. It has been fixed in 5.3.0 Beta version of wso2
> identity server. But I am facing the same issue in the 5.3.0 release
> version of wso2 identity server and also verified in the 5.4.0 release
> version, problem is remains in both version. Please check this issue. I
> have followed the below steps to reproduce this issue:
>
> Steps :
>
> 1.       Register a SP for playground app
> Callback URL - http://localhost:8080/playground2/oauth2client
> Allowed Grant Types = Code
>
> 2.       Visit the URL http://localhost:8080/playground2/oauth2.jsp
> <http://localhost:8080/playground2/oauth2.jsp>and enter the below details
> and submit
> Authorization Grant Type : Authorization Code
> Client ID : (the client id received at the application registration)
> Scope : openid
> Callback URL : http://localhost:8080/playground2/oauth2client
> Authorize Endpoint : https://localhost:9443/oauth2/authorize
>
> 3.       Enter user name and password of the admin and click on login
>
> 4.       Enter callback url and other info
>
> 5.       Enter the user info endpoint and click on get user info
> https://localhost:9443/oauth2/userinfo?schema=openid
>
> I have follow this link to register app https://docs.wso2.com/display/
> IS530/Basic+Client+Profile+with+Playground
> <https://docs.wso2.com/display/IS530/Basic+Client+Profile+with+Playground> and
> try to access the user information through the curl command using a valid
> access token
>
>
>
> Issue: Only 'subject' field is returned when userinfo is requested by curl
> command using a valid access token
>
>
>
> e.g  curl -k -H "Authorization: Bearer YOUR_ACCESS_TOKEN" https://
> localhost:9443/oauth2/userinfo?schema=openid
>
>
>
> The following response is displayed:
>
>                                 {"sub":"admin”}
>
>
>
> But Expected response should be displayed as below
>
> {
>
>    "sub":"admin",
>
>    "email":"ad...@wso2.com",
>
>    "website":"https://wso2.com"; <https://wso2.com/>,
>
>    "name":"admin",
>
>    "family_name":"admin",
>
>    "preferred_username":"admin",
>
>    "given_name":"admin",
>
>    "profile":"https://wso2.com"; <https://wso2.com/>,
>
>    "country":"Sri Lanka"
>
> }
>
>
>
> Thanks & Regards
>
> Monika Sharma
>
>
>
>
>



-- 
Regards,


*Darshana Gunawardana*Technical Lead
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com <darsh...@wso2.com>*
*Mobile: +94718566859*Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to