简体   繁体   中英

identityserver4 RequestResourceOwnerPasswordAsync unauthorized_client

I dont know why i get unauthorized_client by using tokenClient.RequestResourceOwnerPasswordAsync:

RequestResourceOwnerPasswordAsync未经授权的客户端

I solved this in 3 steps:

Step 1: Implement IResourceOwnerPasswordValidator: 步骤1:实现IResourceOwnerPasswordValidator: Step 2: Granttype (Resource owner password): 步骤2:Granttype(资源所有者密码) Step 3: Configure the service:

   services.AddTransient<IResourceOwnerPasswordValidator, ResourceOwnerPasswordValidator>();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM