歡迎您光臨本站 註冊首頁

zlt-mp v4.0.0 釋出,基於 Spring Cloud Alibaba 的微服務平臺

←手機掃碼閱讀     admin @ 2020-07-14 , reply:0

功能介紹

更新內容

特性/增強

  • 重構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


[admin ]

來源:OsChina
連結:https://www.oschina.net/news/117176/zlt-mp-4-0-released
zlt-mp v4.0.0 釋出,基於 Spring Cloud Alibaba 的微服務平臺已經有142次圍觀

http://coctec.com/news/all/show-post-243011.html