amantinband / clean-architecture

The ultimate clean architecture template for .NET applications 💪
MIT License
1.4k stars 221 forks source link

Seggregate authorizeable interface #28

Open amantinband opened 4 months ago

pointlevel commented 4 months ago

With this solution im not able to use multiple policies with different seggregated AuthorizableRequests? Let say for example that i have the policy "AdminOrManager" and also want to use "SelfOrAdmin" (just in theory) then which Request would i use, when i actually need them both? Or is that a case where i create another request combining them both, "ManagerSelfOrAdminAuthorizeableRequest.cs" and strict uses only one policy per query/command?