Add Authentication to Asp.net Core project

Question:

I created an Asp.Net Core MVC project without authentication.

With the project already in progress, I need to add the authentication part and I wanted to be able to automatically generate all the files that would be generated if I had put "Individual User Authentication" when creating the project.

How do I change the authentication from "No Authentication" to "Individual User Authentication" and generate these files after the project is created?

Answer:

You'll have to use the Identity framework for that, and create its screens and classes manually.

Here is a link to the official documentation (in English) on how to do this.

Scroll to Top