ASP.NET MVC 3 Authentication/Authorization [closed

2019-03-12 19:14发布

问题:

I am very new to ASP.NET MVC 3 (and MVC in general for that matter). In ASP.NET Web Forms, I did authentication using Principals and Identities. Is this the recommended way to do it in MVC or is there something newer? I see a Membership class, but if I understand it correctly it is too heavyweight for what I need.

Does any one have a good tutorial or site recommendation to help me out with this? It can be comprehensive as I still don't have this stuff solidified.

Thanks.

回答1:

FYI, here's a nice blog post about how to integrate IIdentity and IPrincipal with MVC 3

http://www.bradygaster.com/post/custom-authentication-with-mvc-3.0