How to manually add Identity to an existing ASP.NET Core project

JORGE MALDONADO BARRERA 211 Reputation points
2021-09-24T14:11:32.767+00:00

Hi,

I currently have an ASP.NET Core 5 project that I created without selecting any Authentication. The reason is that I am using Telerik UI controls and the project was created with a Telerik template which does not offer selecting Authentication. However, I want to implement my own Identity functionality using the MVC pattern and avoid Razor Pages. I know that I can use scaffolding, but such process adds the default Identity Razor approach. I have been searching for articles on how to add Identity from scratch without using scaffolding but everything I have found goes in this direction.

Can anyone point me to a good tutorial on how to manually add Identity without any Razor approach so I can implement my own MVC controllers and views for Login, Register, etc.?

Respectfully,
Jorge Maldonado

Developer technologies | ASP.NET | ASP.NET Core
0 comments No comments
{count} vote

Accepted answer
  1. JORGE MALDONADO BARRERA 211 Reputation points
    2021-09-24T18:40:02.027+00:00

    I guess I just found a good step-by-step tutorial here:
    https://www.tektutorialshub.com/asp-net-core/asp-net-core-identity-tutorial/

    Although this tutorial uses Razor Pages to build the UI, you can take advantage of such code to implement your own Controllers and Views instead.

    Regards,
    Jorge Maldonado

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.