An ABP module that allows you to define and grant dynamic permissions in runtime.
-
Install the following NuGet packages. (see how)
- EasyAbp.Abp.DynamicPermission.Application
- EasyAbp.Abp.DynamicPermission.Application.Contracts
- EasyAbp.Abp.DynamicPermission.Domain
- EasyAbp.Abp.DynamicPermission.Domain.Shared
- EasyAbp.Abp.DynamicPermission.EntityFrameworkCore
- EasyAbp.Abp.DynamicPermission.HttpApi
- EasyAbp.Abp.DynamicPermission.HttpApi.Client
- EasyAbp.Abp.DynamicPermission.MongoDb
- EasyAbp.Abp.DynamicPermission.Web
-
Add
DependsOn(typeof(AbpDynamicPermissionXxxModule))
attribute to configure the module dependencies. (see how)
-
Use the management page to define a dynamic permission.
-
Grant the new permission to roles or users.
- Make PermissionGrant extensible.