Discovering AuthorizeAttribute role names

The AuthorizeAttribute is used in ASP.NET code to decorate controller¬†classes and methods which require authorization, e.g. [Authorize(Roles =”admin”)] public class HomeController : Controller { Meaning that to call any method in this class, the user needs to have a role claim with the value ‘admin’. With many controllers and methods the number of roles used…

0