Skip to content

An ABP module that allows you to define and grant dynamic permissions in runtime.

License

Notifications You must be signed in to change notification settings

SyrnaAbp/Syrna.DynamicPermission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syrna.DynamicPermission

Dynamic permission module for ABP framework.

ABP version build and test NuGet Download NuGet (with prereleases)

An ABP module that allows you to define and grant dynamic permissions in runtime.

Installation

  1. Install the following NuGet packages. (see how)

    • Syrna.DynamicPermission.Application
    • Syrna.DynamicPermission.Application.Contracts
    • Syrna.DynamicPermission.Domain
    • Syrna.DynamicPermission.Domain.Shared
    • Syrna.DynamicPermission.EntityFrameworkCore
    • Syrna.DynamicPermission.HttpApi
    • Syrna.DynamicPermission.HttpApi.Client
    • Syrna.DynamicPermission.Web
    • Syrna.DynamicPermission.Blazor
    • Syrna.DynamicPermission.Blazor.Server
    • Syrna.DynamicPermission.Blazor.WebAssembly
  2. Add DependsOn(typeof(SyrnaDynamicPermissionXxxModule)) attribute to configure the module dependencies. (see how)

  3. Add builder.ConfigureDynamicPermission(); to the OnModelCreating() method in MyProjectMigrationsDbContext.cs.

  4. Add EF Core migrations and update your database. See: ABP document.

Usage

Dynamic Permission Definitions

Dynamic Permission Definitions Editing

Edit Role Permissions

Reference

This project based on EasyAbp DynamicPermission

Differences

  1. Demo project created for OpenIddict
  2. Demo project extended modules added
  3. Blazor modules added
  4. Db schema refatored
  5. Blazor modules implemented
  6. AspNetCore Web refactored

About

An ABP module that allows you to define and grant dynamic permissions in runtime.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published