zlt-mp v4.0.0 发布,基于 Spring Cloud Alibaba 的微服务平台
功能介绍
更新内容
特性/增强
- 重构uaa的自定义授权实现,统一授权接口使用grant_type区分
- 基础框架版本升级
- 升级spring-boot到2.2.8.RELEASE
- 升级spring-cloud到Hoxton.SR6
- 升级spring-cloud-alibaba到2.2.1.RELEASE
- 升级spring-boot-admin-starter-server到2.2.3
- 升级search-center支持ES7.x版本,不支持6.x版本
- 升级elasticsearch-rest-high-level-client到7.8.0
- 升级elasticsearch-rest-client到7.8.0
- 升级elasticsearch到7.8.0
- 升级zlt-register/nacos到1.3.1
- 升级transmittable-thread-local到2.11.5
问题修复
- 修复用户列表只显示用户所关联的当前租户的角色
- 修复redis-cluster模式下有时候会删除token失败
- [#I1LPAV] RedisClientDetailsService.removeRedisCache()方法没有删除缓存
- [#I1KAME] SysRole类里的userId缺少@TableField(exist = false)
分支变更
增加分支 3.x(该分支不会更新)
- Spring Boot 2.1.14.RELEASE
- Spring Cloud Greenwich.SR6
- Spring Cloud Alibaba 2.1.2.RELEASE
内容说明
一、重构uaa的自定义授权实现
由于之前的实现脱离了 Oauth2 的管理,所以这次重构把所有授权接口都统一整合到 oauth/token 接口中通过 grant_type 来区分与控制权限,并删除 OAuth2Controller 类。
1.1. 自定义授权接口地址变更
其他请求参数不变
密码验证码登录
原接口:http://localhost:9900/api-uaa/oauth/user/token
新接口:http://localhost:9900/api-uaa/oauth/token?grant_type=password_code
openId登录
原接口:http://localhost:9900/api-uaa/oauth/openId/token
新接口:http://localhost:9900/api-uaa/oauth/token?grant_type=openId
手机号密码登录
原接口:http://localhost:9900/api-uaa/oauth/mobile/token
新接口:http://localhost:9900/api-uaa/oauth/token?grant_type=mobile_password
1.2. 应用授权配置
应用支持那些授权模式,现在可以在应用管理里统一配置与查看了
二、旧版本升级
需要执行以下sql语句,不然会登录不了
zlt-doc\版本升级_sql\旧版本升级v4.0.0.sql
不是升级的不需要执行,因为zlt-doc\sql里面已包含
项目地址
Gitee地址: https://gitee.com/zlt2000/microservices-platform
Github地址: https://github.com/zlt2000/microservices-platform
项目文档
https://www.kancloud.cn/zlt2000/microservices-platform/919417
项目更新日志
https://www.kancloud.cn/zlt2000/microservices-platform/936235

