Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overriding ASP.NET Membership in ASP.NET MVC 4

In previous versions of ASP.NET I could modify the Membership Provider settings in web.config to point to my custom implementation.

I'm trying to emulate this in MVC4, but it appears things have changed a little in the template. It appears to be using WebMatrix.WebData.WebSecurity instead of the classic Membership classes. Do I need to strip all that stuff out and replace it with the Membership calls like I previously did, or is there a way to use the new WebMatrix.WebData.WebSecurity classes with my custom Membership implementation?

like image 355
Mike Cole Avatar asked Nov 03 '22 17:11

Mike Cole


1 Answers

You will have to strip out all the stuff and replace with membership calls if you want to continue using your custom membership implementation. SimpleMembership(webmatrix.webdata.websecurity) will not work with existing membership implementations

like image 57
pranav rastogi Avatar answered Nov 15 '22 12:11

pranav rastogi