If I want to protect a specific section in my MVC application, I use [Authorize] for ActionMethod. I also know that I can use it for the entire controller, so I do not need to specify it for every ActionMethod in it.
I want to require authorization around the world and I want to allow anonymous users in just a few places. How do I allow users to log in all over the world and allow anonymous users to use several ActionMethods?
asp.net-core asp.net-core-mvc asp.net-identity asp.net-authorization
Sam
source share