Answer the question
In order to leave comments, you need to log in
How to attach Identity to an existing asp.net core 2.0 project?
There is an existing project on asp.net core 2.0. I need to add Identity to the project, but all the articles I found were on creating a new database for Identity. Whether it is possible to deliver and fasten to already existing DB?
Answer the question
In order to leave comments, you need to log in
I did my RoleProvider, basically the same thing:
Start from here: https://docs.microsoft.com/ru-Ru/aspnet/identity/o...
Find the required interface (some IdentityProvider), write a class that implements it, write it in Web.Config
Theoretically, you need to inherit your database context from IdentityDbContext, rebuild the project and add a new migration and apply it. Well, for authorization, add the necessary controller and settings to Startup.cs. Create an empty project with authorization for individual records, and take a look.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question