Вопрос

I'm doing a side-by-side migration of a pretty large existing WebForms app to MVC 4. The app currently uses the MembershipProvider mechanism to do auth. How can I use MembershipProvider side-by-side with the newer SimpleMembership that is included in the ASP.NET MVC 4 "Internet Application" project template? It's not possible to change it all over at once since the app will take several months to convert completely and therefore the side-by-side migration.

Looking at this question, I'm guessing the answer is "not possible" or "strongly not advised" but I thought I'd ask anyways.

Thanks in advance

Это было полезно?

Решение

You're talking about the same thing. SimpleMembership is itself a MembershipProvider. Basically, the site you're converting has its own customized membership setup. Most likely you couldn't actually convert it, because it would still require making cutomizations to SimpleMembership which would simply net you another custom MembershipProvider.

Besides, ASP.NET MVC5 is already out, and with it, ASP.NET Identity, which completely replaces the old membership system. So, if you're going to spend the time to switch out your authentication, you might as well go for the latest and greatest, instead of moving from one outdated system to another.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top