Disengage Identity and handle Identityuser in the domain - Asp.net Core MVC 2.2

Asked

Viewed 128 times

1

I want to implement Identity on my site, but not the way it comes in the MVC template with auth Individual from . net core 2.2, because I want to handle the Identityuser class on my domain, so that I can add more properties and some related rules to the user and a property I call "points".

I saw a video of Eduardo Pires where he places Identity in a Crosscutting and if I’m not mistaken he creates in the domain a "mirrored" User class in Identityuser.

This would be perfect for me, but Identity has changed a lot, when I create a project using the template a lot has disappeared.....

It is still possible to do as Eduardo Pires?

Give me tips bearing in mind that I need to have the Identityuser class in the domain to suit my business rules.

Thanks a lot and I would be more grateful if you could give me a tutorial (can be in English) on how to install this new Identity manually from an empty mvc project.

  • 1

    Today it’s the same.

  • So how good am I to create everything in hand? Create Accountcontroller, other classes and put middleware, services.....

  • 1

    In fact in the template it gives the option to extend the class Identityuser and then you can use and configure in your code for this more specific class of your process.

  • True, it looks good to use the template, extend the class with new props, create a user class in the mirrored domain in Identityuser and make the rules... And as expected I will have 2 contexts and I will have to map the user class to Aspnetusers

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.