asp.net-mvcasp.net-mvc-5membership-providerasp.net-identitycustom-membershipprovider

MVC 5 - Is it possible to reuse Custom MembershipProvider


I am migrating an existing application from web forms to MVC 5, and I am looking to re-use our custom membership provider(implementing System.Web.Security.MembershipProvider interface). Jumping to ASP.Net Identity is something we would consider down the line - it doesn't seem to work well with the database first model.

Any thoughts/advice welcome! Keith


Solution

  • Have a look at the CustomMembership sample at https://aspnet.codeplex.com/SourceControl/latest#Samples/Identity/CustomMembershipSample/ Hope you find that helpful