Adding an identifier to an existing project

I have an MVC project and I want to add Identity to it, but I cannot find good articles on how to do this.

Is there an easy way to add Identity to an existing project?

I already have a database with materials in it

+6
source share
3 answers

Well, in one respect, you just need to add the Nuget package and start writing code with it, but I think that you are probably talking about all the additional functions: pre-written code and samples for performing actions such as password reset, two-factor auth and etc.

There is no way to do this, in fact there is no easy way, at least in the sense of pressing a button and moving. I would recommend creating a new MVC 5 project with individual Auth and then adding the Identity Samples Nuget package to it . Then open an existing project in another Visual Studio window and copy / paste or use the sample code as a guide to write your own.

+8
source

Here is a tutorial that I followed adding Identity ASP.Net to an existing project. This is also relevant from a reputable source on asp.net/identity.

+3
source

I will repeat what Chris said. there is no "easy way". here is a video link featuring Scott Allen (a pioneer in a web browser (video link)

You can also check out his other videos.

+1
source

Source: https://habr.com/ru/post/982758/


All Articles