IdentityServer4 LocalApi with custom policy in .NET Core 3.1
问题 I'm trying to use the "LocalApi" feature of IdentityServer4 with some custom Policies. I have an API (hosted on the same application instance as IdentityServer4) that is divided into three parts (Server, Manager, Product) and for three clients (Server, Manager, Product). Client can only call the devoted part of the API and I would do this with Policies based on scopes. So I have the following: Starup: services.AddLocalApiAuthentication(); // Add API hosted on same application than