By: Jajati Badu Account Admin 11 May 2017 at 5:24 a.m. CDT

4 Responses
Jajati Badu gravatar
Currently I am working on a .Net Web Application and using oxd-server. As per the [OXD Server Protocol Get User Info](https://gluu.org/docs/oxd/protocol/#get-user-info) document. The response type for Get-User-Info is below. ``` { "status":"ok", "data":{ "claims":{ "sub": ["248289761001"], "name": ["Jane Doe"], "given_name": ["Jane"], "family_name": ["Doe"], "preferred_username": ["j.doe"], "email": ["janedoe@example.com"], "picture": ["http://example.com/janedoe/me.jpg"] } } } ``` And I am getting some additional fields like profile, gender, locale etc which are not mentioned in the document. I would like to know if these fields are also part of response type in oxd-server or the response is directly from OP provider ? Is there any other fields which are part of Response but not documented in [OXD Server Protocol Get User Info](https://gluu.org/docs/oxd/protocol/#get-user-info) document Another question why I am not seeing email field in the Response Json FYI.. I am using google as OP ``` { "status": "ok", "data": { "claims": { "sub": [ "114993941428991624747" ], "gender": [ "other" ], "profile": [ "https://plus.google.com/114993941428991624747" ], "name": [ "Jajati Badu" ], "given_name": [ "Jajati" ], "locale": [ "en" ], "family_name": [ "Badu" ], "picture": [ "https://lh3.googleusercontent.com/-WI3w_-6C6sY/AAAAAAAAAAI/AAAAAAAAAAA/T4BhuxtUusk/photo.jpg" ] } } } ```

By Yuriy Zabrovarnyy staff 11 May 2017 at 6:11 a.m. CDT

Yuriy Zabrovarnyy gravatar
Jajati, oxd documentation provides samples. It means that if it says ``` { "command":"get_user_info", "params": { "oxd_id":"6F9619FF-8B86-D011-B42D-00CF4FC964FF", "access_token":"SlAV32hkKG" } } ``` Then it does not mean that in your case you have to send exactly `6F9619FF-8B86-D011-B42D-00CF4FC964FF` but you have to send your oxd_id, probably it would be more clear if it would be more generic like ``` { "command":"get_user_info", "params": { "oxd_id":"<your oxd_id here>", "access_token":"<your access token>" } } ``` For response case than it would be ``` { "status": "ok", "data": { "claims": { <claims depending on scopes of provided access_token> } } } ``` It means that claims is dynamic information and the exact claims depends on scopes and which exactly claims are assigned to those scopes. (Administrator can configure all claims for given scopes or or just a few or only one, it all depends.) For more information please read specification and documentation: - http://openid.net/connect/ - https://gluu.org/docs/ce/3.0.1/admin-guide/openid-connect/ Thanks, Yuriy

By Jajati Badu Account Admin 11 May 2017 at 6:48 a.m. CDT

Jajati Badu gravatar
Hi Yuriy, Thanks a lot. It is clear now. That means the oxd-server libraries may need to be changed based upon claims. Kind Regards, Jajati

By Yuriy Zabrovarnyy staff 11 May 2017 at 7:52 a.m. CDT

Yuriy Zabrovarnyy gravatar
Jajati, No, libraries must handle claims dynamically. Since we don't know which exactly claims are going to be returned libraries must provide generic handling for it. E.g. ``` Map<String, List<Object>> getClaims(); ``` Do you have any other questions within this ticket or it can be closed? Thanks, Yuriy

By Jajati Badu Account Admin 11 May 2017 at 8:03 a.m. CDT

Jajati Badu gravatar
Thanks. Closing the ticket