我已经使用WSO2 Identity服务器5.2.0来实现oauth2授权流。我已成功实施它。我访问令牌,但是当我试图从WSO2获取用户信息使用下面的命令:如何从wso2获取用户信息是5.x使用“oauth2/userinfo?schema = openid”
curl -X GET -H "Authorization: Bearer 5e122a0e7276cd4f245e1be238002aa4" -H "Cache-Control: no-cache" -H "Postman-Token: 77faba9b-6a2e-d8ba-a3f6-25ff0da69979" "https://localhost:9443/oauth2/userinfo?schema=openid"
给出了回应:
{"sub":"[email protected]"}
但我需要的电子邮件,姓,名,角色,手机号码等
做了配置建议中:https://docs.wso2.com/display/IS500/Configuring+OpenID+Connect+Authorization+Server
我也跟着:https://wso2.org/jira/browse/IDENTITY-4250
与https://github.com/wso2/carbon-identity/pull/1688/ 但我不知道在构建https://github.com/wso2/carbon-identity项目后如何使用该构建解决方案。 我也尝试过使用WSO2 Identity Server 5.1.0,但得到的回应相同 请提供任何建议。提前致谢。