IDW10201: Neither scope or roles claim was found in the bearer token

后端 未结 4 690
醉话见心
醉话见心 2021-01-21 04:18

I have a ASP.NET Core 3.1 project like this sample: Sign-in a user with the Microsoft Identity Platform in a WPF Desktop application and call an ASP.NET Core Web API.

I\'

4条回答
  •  粉色の甜心
    2021-01-21 05:16

    Just add DefaultMapInboundClaims to your API service config

    public void ConfigureServices(IServiceCollection services)
    {
        JwtSecurityTokenHandler.DefaultMapInboundClaims = false;
    }
    

提交回复
热议问题