Wso2 oauth userinfo authentication server returns only

I installed SP on the wso2 authentication server and was able to get access_token in auth2 using the playground. Link: https://docs.wso2.com/display/IS510/OAuth+2.0+with+WSO2+Playground

Then I got access to the userinfo endpoint, for example:

curl -k -H "Authorization: Bearer 603b0a91-0354-3b64-90e9-0eb1fdd8f162" https://localhost:9443/oauth2/userinfo?schema=openid

I always get JSON:

{"sub":"admin@carbon.super"}

But there must also be other properties, such as first name, last name, email address, etc. default. How to configure the server to return all this information?

PS tried IS 5.1 and 5.2

+2
source share
2 answers

, UserInfo openid - , OIDC, , SP. , , .

Uri http://wso2.org/oidc/claim enter image description here

  1. http://wso2.org/claims , email http://wso2.org/oidc/claim SP. , Mapped Attribute. "Email" http://wso2.org/claims. enter image description here
  2. "Email" http://wso2.org/claims SP enter image description here

curl -k -H "Authorization: Bearer 8b2805a7-5b74-33ee-84df-2a8c53a16f6c" https://localhost:9443/oauth2/userinfo?schema=openid

{"sub":"admin@carbon.super","email":"admin@wso2.com"}
+7

, , [1]. IS 5.1.0, 5.2.0 . jira, 5.3.0, .

[1] https://wso2.org/jira/browse/IDENTITY-4250

+1

Source: https://habr.com/ru/post/1625052/


All Articles