JonPSmith / AuthPermissions.AspNetCore

This library provides extra authorization and multi-tenant features to an ASP.NET Core application.
https://www.thereformedprogrammer.net/finally-a-library-that-improves-role-authorization-in-asp-net-core/
MIT License
764 stars 155 forks source link

Question about the design #46

Closed idan-h closed 2 years ago

idan-h commented 2 years ago

Hey, I have a question; Why not extend microsoft's identity framework, instead of managing multiple tables in parallel?

(Ex. dbo.AspNetUsers - authp.AuthUsers)

You can use a custom user, add the roles etc, all in the same context, and then add the tenants and required extra tables and services

It makes the need of sync between those tables unnecessary, and the db much more normalized and less complex.

Great work btw, Thanks!

idan-h commented 2 years ago

I think it clicked with me, Is it so that if you would want to move to another authentication provider it would be easier?

JonPSmith commented 2 years ago

Yep, you are right. The Azure AD is a great authentication provider and I wanted to support. I also don't think you can alter microsoft's identity framework to cover all the things that the AuthP needs.