Policy based authorization in ASP.NET Core
In my previous article, I explained about restricting users based on the IP Address. It was implemented by using a whitelist of IP Address and middleware. Obviously, that solution helps authorize users on the application level. I also promised another article to explain about restricting users on a controller level or action level. Policy-based authorization is a new feature introduced in Dotnet Core. This allows you to implement the application authorization rules in code. In…