【发布时间】:2018-01-25 16:22:44
【问题描述】:
我正在使用 IdentityServer4 设置一个 asp.net core 2 web api,由于一些现有客户,我需要支持资源所有者密码凭据授予。我在获取令牌时遇到问题,因为它显示“未找到客户端标识符”。
这失败了……
Content-Type: application/x-www-form-urlencoded
grant_type=password&username=myuser&password=mypassword
成功了……
Content-Type: application/x-www-form-urlencoded
grant_type=password&username=myuser&password=mypassword&client_id=ro.client
为什么我需要添加 client_id 才能使其工作? OAuth 2.0 规范未指定需要它 - https://www.rfc-editor.org/rfc/rfc6749#section-4.3
【问题讨论】:
标签: c# asp.net-core-2.0 identityserver4