在SimpleMembership上使用ASP身份

时间:2013-12-11 21:54:34

标签: asp.net-mvc-4 asp.net-mvc-5

我目前有一个SimpleMembership的MVC 4应用程序,效果很好。我觉得我现在可以更新到MVC 5,而我仍在开发而不是以后。

我想知道继续SimpleMembership或转移到ASP Identity是否更实际。我已经读过可以让SimpleMembership工作。 Link

如果我没有读到它迫使开发人员实现旧版本自己的大多数功能,那么移动到ASP Identity会没有问题。例如登录尝试和确认电子邮件。 Here is one place this is stated

自这些帖子以来,ASP Identity可能已发生变化,但我很难找到相关文档。

任何建议或个人经历都将受到高度赞赏。

1 个答案:

答案 0 :(得分:0)

开源SimpleSecurity Project提供了使用ASP.NET Identity实现email confirmation等功能的良好示例。此项目还提供了using SimpleMembership in MVC 5的示例,并帮助您了解我在尝试升级到MVC 5时遇到的一些障碍。在SimpleSecurity project decouples it from the web application中实现ASP.NET身份并提供类似于使用SimpleMembership熟悉的WebSecurity类。 SimpleSecurity为您提供MVC 5的两个选项,但由于您正在努力升级到MVC 5并且您仍在开发中,我还会努力升级到ASP.NET Identity,因为这是身份和访问控制的未来在ASP.NET中。

相关问题