V
V
vldrwaih2018-03-10 01:09:13
ASP.NET
vldrwaih, 2018-03-10 01:09:13

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

2 answer(s)
C
cicatrix, 2018-03-10
@cicatrix

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

R
Roman, 2018-03-11
@yarosroman

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 question

Ask a Question

731 491 924 answers to any question