Ahsen
Ahsen

Reputation: 386

Can we use Asp.Net Membership and Role Provider in MVC 5

I'm converting a MVC 3 application to MVC 5. I've been reading on web that MVC 5 comes with Asp.Net Identity for security. My question is that is possible, feasible and good to use old membership and role provider in MVC 5 application. Can anyone give any useful link where I can learn conversion from membership and role provider to Identity.

Upvotes: 4

Views: 1688

Answers (2)

trailmax
trailmax

Reputation: 35106

You don't have to migrate Membership provider to Identity if you don't want to. MVC5 will happily work with Membership provider. I have migrated MVC3 with Membership provider to MVC5 and had no problems with users.

Recently I have migrated from Membership to Identity and also had no major problem migrating - just followed the instructions in the link already provided.

Upvotes: 2

Suhas Joshi
Suhas Joshi

Reputation: 1060

https://aspnet.codeplex.com/SourceControl/latest#Samples/Identity/ contains samples to convert apps from older memberships to Identity. These might be helpful. Also look at http://www.asp.net/identity/overview/migrations for more information on migrating apps

Upvotes: 2

Related Questions