【发布时间】:2017-05-07 23:16:37
【问题描述】:
我已经在 wso2 身份服务器中设置了 SP,并且能够使用 Playground 在 auth2 中获取 access_token。 参考:https://docs.wso2.com/display/IS510/OAuth+2.0+with+WSO2+Playground
然后我访问了 userinfo 端点,例如:
curl -k -H "Authorization: Bearer 603b0a91-0354-3b64-90e9-0eb1fdd8f162" https://localhost:9443/oauth2/userinfo?schema=openid
我总是得到 JSON:
{"sub":"admin@carbon.super"}
但默认情况下还应该有其他属性,如名字、姓氏、电子邮件...等。如何配置服务器以返回所有这些信息?
P.S 试过 IS 5.1 和 5.2
【问题讨论】: