C
C#3w ago
Alex

✅ I need help with Aspnetcore Identity in clean architecture

What the correct was to integrate identity with clean architecture? As I understand I shouldn't extend domain user model from identityuser. Should I have separate dbcontexts to manage domain users and identity user? I need user + roles + permissions to secure my app
4 Replies
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Alex
AlexOP3w ago
I understand how it works and that I should use the existing Identity classes and managers. However, I’m following a course where the author uses Keycloak in a Clean Architecture project. I don’t want to learn Keycloak right now and prefer to replace it with Identity. In the course, the author simply adds an IdentityId field to the domain layer User entity to store the Keycloak user ID. This raises the question for me: should Identity be integrated in the same way as Keycloak, or should it be done differently?
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Alex
AlexOP3w ago
np

Did you find this page helpful?