.Net Core Security Trimming using Authorized Attribute on Controller Methods
问题 We just upgraded to .NET Core, and i'm trying to get things up and running with as little refactor as possible. All of our Security is handled by custom attribute decorations on controller methods. Kinda like this: [CustomAuthorize(Roles = "VIEWONLY, DEVELOPER, ADMIN, CHIEFADMIN") public ActionResult GetPage(string id){ return view; } Previously i had a custom HTMLHelper helping me do security trimming on Menu Links. It would check the controller action, and return true/false. Most of the