title: Custom roles in MVC 5 for Active Directory authentication
body: <p>So I created a test MVC 5 web application that has "Windows Authentication". Now I want to hide/show/allow access to different part of application based on predefined roles. My roles can be hard coded as "Admin" and "User".</p>
  
  <p>That means I need to have a table that holds windows login name and their role. Now the question is how can I achive something similar to "Authorize" that MVC identity already provided. Example <code>[Authorize(Roles="Admin")]</code> . My guess is that this code automatically get info from table AspNetUserRoles for logged in user. </p>
  
  <p>Can I manually create tables AspNetUsers, AspNetRoles, AspNetUserRoles. Then fill them with required data and it will work ? Passwords in table AspNetUsers can hardcoded because I will not be using it for login purpose. Please suggest.</p>