4

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?

3
  • You can use plain old Forms Authentication if you want to. You'll just have to wire it all up yourself. Commented Feb 11, 2014 at 18:25
  • Hi Sam, i'd like to take advantage of the Claims, can this be achieved using Forms Authentication? Commented Feb 11, 2014 at 18:27
  • Sorry, I've only used traditional Forms Authentication with roles. Don't know how claims fit in. Commented Feb 11, 2014 at 18:28

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

10 Comments

Anders, can you direct me to any documentation, i'm relatively new to this, and want to fully grasp your suggestion. Cheers
There some good stuff written by @OdeToCode at odetocode.com/blogs/scott/archive/2013/11/25/….
Ok Anders, you've led me to some serious reading :-) One question I have. Having spent the last couple of hrs researching the above site, am I correct in assuming that I need to roll all my database table (none user related) into then EF model? The reason I ask, is that I want to register and authenticate a user, but then use Dapper to provide data back to my MVC app, plus to a mobile app via Web Api 2. From some example from Scott, he seems to roll everything into the same localDb, which i don't want to do if possible
any examples you could point me too Anders. the documentation seems limited to none existent. :-)
Did you solve this problem? Can you share the source code if you did? I'm currently trying to write Asp.Net.Identity.Dapper
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.