Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User Authentication with MVC 5, without EF

I am trying to upgrade an old asp.net app (not the Database), to an MVC 5 application. I've select to use Individual account authentication, and cant seem to find a way of decoupling, the EF requirements. Not sure if it even possible, but how can one use ASP.NET Identity without the overheads of EF?

What is everyone else using?

like image 248
CSharpNewBee Avatar asked Oct 23 '25 15:10

CSharpNewBee


1 Answers

You have to provide an own implementation of the IUserStore<TApplicationUser> interface. Then update the generated default constructor for the AccountController to use your own implementation instead of the default EF based one.

like image 114
Anders Abel Avatar answered Oct 26 '25 07:10

Anders Abel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!