A more lightweight DI extension method without authorization should be seperately provided.
Casbin.NET may act as a pure service for resource permission storage. In this scenario, people focus on the permissions they have ,not challenging the authorization.
We can provide extension method such as AddCasbinCore and AddCasbinAuthorization to meet these aspects of needs.
AddCasbinCore serves basic Casbin.Net as a library,providing an ability to use basic Enforcer and Management API,while AddCasbinAuthorization focus on Permission authorize middleware registration.
A more lightweight DI extension method without authorization should be seperately provided. Casbin.NET may act as a pure service for resource permission storage. In this scenario, people focus on the permissions they have ,not challenging the authorization. We can provide extension method such as
AddCasbinCore
andAddCasbinAuthorization
to meet these aspects of needs.AddCasbinCore
serves basic Casbin.Net as a library,providing an ability to use basicEnforcer
andManagement API
,whileAddCasbinAuthorization
focus on Permission authorize middleware registration.