I dont know why i get unauthorized_client by using tokenClient.RequestResourceOwnerPasswordAsync:
I solved this in 3 steps:
Step 1: Implement IResourceOwnerPasswordValidator: Step 2: Granttype (Resource owner password): 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.