-
1 votesanswersviews
ASP.NET Web API中基于角色的授权 - 如何在主体上设置角色?
我在新发布的书籍ASP.NET Web Api 2 Recipes中使用配方10-3来支持我的Web API中的基本身份验证 . 该配方使用了Thinktecture的第三方库 . 从下面的代码可以看出,我根据自己的帐户服务对用户进行身份验证 . using Thinktecture.IdentityModel.WebApi.Authentication.Handler; public stat... -
2 votesanswersviews
无法从Thinktecture授权服务器获取令牌
我无法从Thinktecture Authorization Server获取访问令牌 . 成功获取授权代码后,我尝试向令牌 endpoints 发出POST请求,但始终使用此响应获得400 Bad Request:消息:"{ " error ": " invalid_client " }" 我的请求是:POST到https://host...