ASPNET MVC3: Can I use my user/roles tables to handle user authentication?
I'm building an A开发者_运维问答SPNET MVC3 app; I have built, on the SQLServer DB, my users, roles and user_roles tables andI would like to use them instead of the aspnet_* tables built by using aspnet_regsql.exe.
Do you know if is this possible and, if so, in which way I can authenticate my users towards my tables?
You just need to implement your own Membership and Role providers.
see How do I create a custom membership provider for ASP.NET MVC 2?
Yes, you will need to build a custom memberShip provider
精彩评论