Discovering AuthorizeAttribute role names

added by DotNetKicks
3/16/2017 6:49:42 PM

1 Kicks, 255 Views

In this post, Senior Consultant, Marius Rochon showcases how to discover '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...


0 comments