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

后端 未结 4 696
醉话见心
醉话见心 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条回答
  •  旧时难觅i
    2021-01-21 05:01

    The reason is that your are making request with default scope scope=api%3A%2F%2{client_id}%2F.default which doesn't include scope claim in the access_token you should use specific scope that you are registered for your ASP.NET Core 3.1 API project when you have exposing that API in the Azure Portal.

提交回复
热议问题