【发布时间】:2017-06-16 03:05:57
【问题描述】:
从https://github.com/mjrousos/IdentityServer4Authentication 的以下 repo 开始,我添加了一个带有 [Authorize] 属性的单个“Get”方法的“ValuesController”。当我使用 Web 前端登录时,我可以很好地访问此端点 - Web 位包含 IS4 快速入门中的标准 Web 位。
但是,当我使用以下正文(原始)“grant_type=password&username=gvdonovan%40gmail.com&password=Pass20!7&client_id=myClient&scope=myAPIs”从令牌端点(/connect/token)请求令牌时,然后使用它带有单个 Authorization 标头的 Get 请求中的令牌,其值为“bearer [my token]” 我收到 401 Unauthorized 响应。
【问题讨论】:
标签: asp.net-core identityserver4