开发者

ASPNET MVC3: Can I use my user/roles tables to handle user authentication?

开发者 https://www.devze.com 2023-03-19 02:10 出处:网络
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 aspn

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

0

精彩评论

暂无评论...
验证码 换一张
取 消