4

I am just following what is on the guide

I've already populated the user's profile information but so far I only get sub. I want to get something same like in the guide:

{ 
   "sub":"admin",
   "email":"admin@wso2.com",
   "website":"https://wso2.com",
   "name":"admin",
   "family_name":"admin",
   "preferred_username":"admin",
   "given_name":"admin",
   "profile":"https://wso2.com",
   "country":"Sri Lanka"
}

CONFIG

Identity Server - AWS Cloud with Domain and SSL + Nginx Proxy

Sample Web App - local machine

enter image description here enter image description here

UPDATE:

  • It is an open bug. What is the workaround to get the other fields? Based on that jira, only the password grant is not fix, where to get the fix for code and impilict grant?

  • I tried hosting the IS also locally, same results

Community
  • 1
  • 1
letthefireflieslive
  • 11,493
  • 11
  • 37
  • 61
  • Tried with IS 5.2.0 and i was able to get the user profile information using the authorization code grant. I was able to get sub claim plus other claims i set. Can you provide a screenshot of your SP configuration? specially the claim configuration. – farasath Nov 16 '16 at 18:03
  • Added some more details. Do I need to configure something in claims? I'm plainly following the [guide](https://docs.wso2.com/display/IS520/Basic+Client+Profile+with+Playground) – letthefireflieslive Nov 17 '16 at 01:18
  • yup you need to configure required claims in the Service Provider configuration – farasath Nov 17 '16 at 20:13

1 Answers1

0

To retrieve OIDC claim attributes to id_token or userinfo endpoint, the following steps needs to be done correctly(assuming you are working on IS 5.2.0).
1. Update relevant claims' Mapped Attribute with your underlying user store's matching attributes.
2. Update requested claims to Service provider [1].
3. Update missing attributes in '/_system/config/oidc' for scope 'openid' (Configuration changes in IS 5.2.0 [2]).

Kavitha
  • 1
  • 1