identityserver4 RequestResourceOwnerPasswordAsync未经授权的客户端

时间:2019-03-13 11:59:02

标签: c# identityserver4

我不知道为什么我使用tokenClient.RequestResourceOwnerPasswordAsync来获得未经授权的客户端:

RequestResourceOwnerPasswordAsync unauthorized_client

1 个答案:

答案 0 :(得分:0)

我通过3个步骤解决了这个问题:

第1步:实现IResourceOwnerPasswordValidator: Step 1: Implement IResourceOwnerPasswordValidator: 步骤2:Granttype(资源所有者密码): Step 2: Granttype (Resource owner password) 步骤3:配置服务:

   services.AddTransient<IResourceOwnerPasswordValidator, ResourceOwnerPasswordValidator>();