Skip to content

MingsonZheng/dotnetnb.security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚤无代码埋点通用权限管理系统

  • DotNetNB.Security.Core:定义 core,models,Istore;实现 default memory store
  • DotNetNB.Security.ActionAccess:扫描 action;添加 action authorize filter;添加集成方式
  • DotNetNB.Security.EntityAccess:扫描 entities;添加 ef savechanges interceptor
  • DotNetNB.Security.Store.EntityFramework:基于 mysql 创建 PermissionStore 和 ResourceStore
  • DotNetNB.Security.Identity:将权限赋予角色或用户;在用户登录时将 Permissions 写入用户身份 claims
  • DotNetNB.WebApplication:创建 ResourceController 和 PermissionController 进行验证

环境配置

mysql

docker pull mysql
docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=root@dotnetnb666 -d mysql

migration

切换到 refactor 分支

PM> Install-Package Microsoft.EntityFrameworkCore.Tools
PM> Update-Package Microsoft.EntityFrameworkCore.Tools
PM> Get-Help about_EntityFrameworkCore
PM> Update-Database -Context DotNetNBIdentityDbContext
PM> Update-Database -Context ApplicationDbContext

默认用户

  • Username:admin
  • Password:Pa$$word666

相关文章

About

🚤无代码埋点通用权限管理系统

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published