开发者

ASP.NET MVC and User Authentication with NHibernate

开发者 https://www.devze.com 2022-12-23 03:23 出处:网络
I am about to start a new application and am excited about using asp.net mvc and nhibernate. However, the big \"proble开发者_开发问答m\" is how I handle the user authentication stuff. What are some wa

I am about to start a new application and am excited about using asp.net mvc and nhibernate. However, the big "proble开发者_开发问答m" is how I handle the user authentication stuff. What are some ways those used to using nhibernate and MVC solve this problem?

My thought is let asp.net do its own thing and I do my own thing database wise. Am curios if I should role my own using the provider model and nhibernate, if I can figure out how. Or is there a way to integrate current code that is in the mvc example into nhibernate?


You can still use the ASP .NET 2.0 Membership APIs from ASP .NET MVC.


Same question here and Manuel Abadia has written a custom NHMembershipProvider here.


4 guys from rolla have an excellent post if you want to buil your own provider on top of the asp.net membership API : https://web.archive.org/web/20211020114106/https://www.4guysfromrolla.com/articles/110310-1.aspx

0

精彩评论

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