增加分支 3.x(該分支不會更新)
由於之前的實現脫離了 Oauth2
的管理,所以這次重構把所有授權介面都統一整合到 oauth/token
介面中通過 grant_type
來區分與控制許可權,並刪除 OAuth2Controller
類。
其他請求引數不變
密碼驗證碼登入
原介面: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
應用支援那些授權模式,現在可以在應用管理裡統一配置與查看了
需要執行以下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
]