I am creating an application in which I am trying to apply DDD and I also want to work with AspNet Identity for the authentication / authorization system. I have created a class library within the Infrastructure layer:
However, I have several doubts.
One of them is if it is good that said layer has its own DbContext associated only for the AspNet Identity tables considering that I will have another DbContext in the Data Persistence layer and that the other DbContext will be used for the business repositories but both will make queries on the same Database.
Another question that arises is if I would like to add new fields to the entities that AspNet Identity provides by default, for example, to the user entity, would it be enough to add the properties corresponding to the ApplicationUser class? Could I have the Aspnet Identity entities in the domain layer? I hope you can guide me and help me, thank you very much. Greetings.