Rupesh Kahane

Rupesh Kahane

  • 103
  • 19.1k
  • 4.2m

Authorize issue for Custom Roles Based Access Control in MVC

May 27 2016 9:34 AM
I have implemented below Custom Roles Based Access Control. First time when user going to logg into my web application.
In class RBACAttribute When I put debugger in below class then it is checking whole controlers in my web application (i.e project)
public override void OnAuthorization(AuthorizationContext filterContext)
{
string requiredPermission = String.Format("{0}", filterContext.ActionDescriptor.ControllerDescriptor.ControllerName);
}
Why first time it is checking for all controllers?

Answers (1)