ASP.NET MVC and Windows Authentication with custom roles
问题 I am trying to implement windows authentication in my ASP.NET MVC2 application. I've followed all the steps suggested by the official documentation: <authentication mode="Windows" /> <authorization> <deny users="?" /> </authorization> I've specified NTLM Authentication. So far so good. Everything works fine. I would like to check the users logged-in against my database. I would like to fetch roles from my table and then manage the authorization using a custom attribute. I don't want to use