# fox-scaffolding **Repository Path**: YaZhou2/fox-scaffolding ## Basic Information - **Project Name**: fox-scaffolding - **Description**: 使用 Spring Security 实现了基于 RBAC、JWT 和 Oauth2 的无状态统一权限认证的解决方案 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: http://www.yiauth.com - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 5 - **Created**: 2021-02-25 - **Last Updated**: 2021-02-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 

Downloads Downloads Downloads Downloads

[![Fork me on Gitee](https://gitee.com/etfox-fox/fox-scaffolding/widgets/widget_6.svg)](https://gitee.com/etfox-fox/fox-scaffolding) [![star](https://gitee.com/etfox-fox/fox-scaffolding/badge/star.svg?theme=white)](https://gitee.com/etfox-fox/fox-scaffolding/stargazers) [![fork](https://gitee.com/etfox-fox/fox-scaffolding/badge/fork.svg?theme=white)](https://gitee.com/etfox-fox/fox-scaffolding/members) ## 如果您觉得有帮助,请点右上角 "Star" 支持一下谢谢(左上角也有一个 :satisfied: ) #### 介绍 fox-scaffolding, create by etfox on 24. #### 参考 [zlt](https://gitee.com/zlt2000/microservices-platform) [ry-vue](https://gitee.com/y_project/RuoYi-Vue) #### 软件架构 - 使用 Spring Boot、Spring Cloud、nacos, Kinf4j - 使用 Spring Security 实现了基于 RBAC、JWT 和 Oauth2 的无状态统一权限认证的解决方案 ![fox-scaffolding 软件架构图](https://images.gitee.com/uploads/images/2020/1126/011046_2473b061_1026204.png "fox-scaffolding.png") #### 登录页 ![mark](https://gitee.com/etfox-fox/fox-resources/raw/master/fox-scaffolding/fox-scaffolding-login.png) #### 使用说明 1. 单点登录 ![mark](https://gitee.com/etfox-fox/fox-resources/raw/master/fox-scaffolding/单点登录.png) 2. 授权说明 [用户名密码模式](https://gitee.com/etfox-fox/fox-scaffolding/blob/master/scaffolding-uaa/src/main/resources/markdown/0-%E5%8D%95%E7%82%B9%E7%99%BB%E5%BD%95%E7%94%A8%E6%88%B7%E5%90%8D%E5%AF%86%E7%A0%81%E6%A8%A1%E5%BC%8F.md) [手机号密码模式](https://gitee.com/etfox-fox/fox-scaffolding/blob/master/scaffolding-uaa/src/main/resources/markdown/1-%E5%8D%95%E7%82%B9%E7%99%BB%E5%BD%95%E6%89%8B%E6%9C%BA%E5%8F%B7%E5%AF%86%E7%A0%81%E6%A8%A1%E5%BC%8F.md) [OpenID](https://gitee.com/etfox-fox/fox-scaffolding/blob/master/scaffolding-uaa/src/main/resources/markdown/2-%E5%8D%95%E7%82%B9%E7%99%BB%E5%BD%95OpenID%E6%A8%A1%E5%BC%8F.md) [授权码模式](https://gitee.com/etfox-fox/fox-scaffolding/blob/master/scaffolding-uaa/src/main/resources/markdown/3-%E7%AC%AC%E4%B8%89%E6%96%B9%E5%8D%95%E7%82%B9%E7%99%BB%E5%BD%95-%E6%8E%88%E6%9D%83%E7%A0%81%E6%A8%A1%E5%BC%8F.md) [客户端模式](https://gitee.com/etfox-fox/fox-scaffolding/blob/master/scaffolding-uaa/src/main/resources/markdown/4-%E7%AC%AC%E4%B8%89%E6%96%B9%E6%8E%A5%E5%8F%A3%E5%AF%B9%E6%8E%A5-%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%A8%A1%E5%BC%8F.md) [简化模式](https://gitee.com/etfox-fox/fox-scaffolding/blob/master/scaffolding-uaa/src/main/resources/markdown/5-%E7%AC%AC%E4%B8%89%E6%96%B9%E6%8E%A5%E5%8F%A3%E5%AF%B9%E6%8E%A5-%E7%AE%80%E5%8C%96%E6%A8%A1%E5%BC%8F.md) ## 1. 文档中心 ![mark](https://gitee.com/etfox-fox/fox-resources/raw/master/fox-scaffolding/knife4j%E6%96%87%E6%A1%A3%E4%B8%AD%E5%BF%83.png) ## 2. 验证组件
拖拽验证
点选验证
拖拽验证 点选验证
## 3. SpringSecurity Oauth 原理 [SpringSecurity 原理](https://gitee.com/etfox-fox/fox-scaffolding/blob/master/scaffolding-uaa/src/main/resources/markdown/7-SpringSecurityOauth%E6%B5%81%E7%A8%8B%E5%9B%BE.md) ## 4. Token 权限验证时序图 ![mark](https://gitee.com/etfox-fox/fox-resources/raw/master/fox-scaffolding/token%20权限验证时序图.png) ## 5. 租户 ID 时序图 ![mark](https://gitee.com/etfox-fox/fox-resources/raw/master/fox-scaffolding/租户ID流转图.png) #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 技术交流群 257136998 [![etfox/fox-scaffolding](https://gitee.com/etfox-fox/fox-scaffolding/widgets/widget_card.svg?colors=393222,ebdfc1,fffae5,d8ca9f,393222,a28b40)](https://gitee.com/etfox-fox/fox-scaffolding)