D
D
docmak2015-08-14 11:11:47
ASP.NET
docmak, 2015-08-14 11:11:47

How to add asp.net identity to code-first?

Good afternoon.
There is a working project: asp.net mvc 5 + angular. Used by CodeFirst. Authorization is implemented through CodeFirstMembershipProvider. Everything works fine, but for further functionality I want to switch to identity.
Is there any way to do this painlessly in the current conditions? Tell me where to look. All migration examples are shown on ModelFirst or DatabaseFirst, and for the standard membershipProvider.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-08-21
@docmak

It depends on what is considered painless :) It will not work out of the box and there is hardly a step-by-step article for your case, but you can do without modifying the account database and rewriting controllers. Identity has an extensible architecture and all you need to do is write a provider for your data. You can start digging from here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question