WebSecurity vs FormsAuthentication in ASP.NET MVC4

前端 未结 3 795
有刺的猬
有刺的猬 2021-02-02 04:45

I guess I am trying to mix two providers in project but I am looking to use websecurity in conjunction to my forms authentication. I need websecurity for OAUTH authentication us

相关标签:
3条回答
  • 2021-02-02 05:04

    You can use an implementation of ExtendedMembershipProvider. For ex: the built-in SimpleMembershipProvider.

    Every ExtendedMembershipProvider IS A MembershipProvider .

    Read more at Jon Galloway's Blog.

    0 讨论(0)
  • 2021-02-02 05:15

    Could possibly be related to the same issue as me MVC4 ExtendedMembershipProvider and entityframework .. I removed the universal providers nuget package and this particular error dissappeared.

    Also this "very recent" article by Jon Galloway may help.

    0 讨论(0)
  • 2021-02-02 05:28

    If you are using Visual Studio, you might want to save yourself all this effort. The MVC 4 Internet template comes with four external identity providers out of the box. I have tested them and Google Accounts, Microsoft account, Facebook login, and Twitter login all work fine, with zero lines of code!

    I think the same is provided with the Web Form template too.

    More info at http://blogs.msdn.com/b/webdev/archive/2012/08/15/oauth-openid-support-for-webforms-mvc-and-webpages.aspx.

    0 讨论(0)
提交回复
热议问题