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
788 stars 159 forks source link

Hierarchical multi-tenant - should tenant roles of the parent tenant be passed down to a new sub-tenant? #20

Closed JonPSmith closed 2 years ago

JonPSmith commented 2 years ago

At the moment, when you add a new hierarchical tenant you would need add any tenant Roles for the new tenant. However, it might be useful to automatically take the tenant Roles of the parent tenant?

If this was implemented, then what happens if you move a tenant - does it copies the new parent's tenant Roles? - most likely that is the correct answer.

JonPSmith commented 2 years ago

Another way to manage this is described in this section of the article called "Advanced techniques around ASP.NET Core Users and their claims".