Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flashvayne/rbac-demo
Demo for rbac-spring-boot-starter
https://github.com/flashvayne/rbac-demo
Last synced: 29 days ago
JSON representation
Demo for rbac-spring-boot-starter
- Host: GitHub
- URL: https://github.com/flashvayne/rbac-demo
- Owner: flashvayne
- Created: 2022-01-24T11:42:22.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-24T11:42:11.000Z (over 2 years ago)
- Last Synced: 2024-10-25T16:53:50.678Z (3 months ago)
- Language: Java
- Size: 37.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rbac-demo
Demo for rbac-spring-boot-starter+ 本Demo通过DemoController中的三个接口简单演示了如何使用 @RbacAuthorization 结合数据库中 rbac表 的配置来鉴权,详见DemoController中的注释内容。
+ 本Demo通过CustomizeRbacTokenService演示了如何通过重写rbac-spring-boot-starter的组件来自定义服务功能。
rbac-spring-boot-starter的基础组件都可进行重写,完成功能扩展。
例如,还可通过继承DefaultRbacAuthUserServiceImpl或实现RbacAuthUserService,重写passwordVerification方法实现密码加密解密校验等操作。
+ 可重写组件:
| 组件 |
| ----|
| RbacAuthorizationAspect |
| RbacAuthUserService |
| RbacTokenService |
+ 每个类都有注释解释,如有疑问请提Issue或Comment,一起探讨,谢谢。# 使用方法
1.clone本项目到本地,Add as a Maven Project并加载Maven依赖
2.运行schema中的SQL,建立基础表
3.填充 application.yml 中的数据库和Redis连接信息
4.Run DemoApplication.# 作者信息
邮箱: [email protected]博客: https://vayne.cc