zl程序教程

您现在的位置是:首页 >  其他

当前栏目

ZLT-MP v5.1.0 发布

2023-03-20 15:02:09 时间
架构图
功能介绍

更新内容

特性/增强

  • 认证中心支持「单点登出」
  • sso-demo增加单点登出支持
  • 日志链路追踪增加spanId和parentId字段
  • 升级spring-boot到2.5.7
  • 升级spring-cloud到2020.0.4

问题修复

  • 解决客户端模式授权报错问题

变更语句

Use `oauth-center`;
update oauth_client_details set additional_information = '{"LOGOUT_NOTIFY_URL_LIST":"http://127.0.0.1:8082/logoutNotify"}'
where client_id = 'webApp';

update oauth_client_details set additional_information = '{"LOGOUT_NOTIFY_URL_LIST":"http://127.0.0.1:8081/logoutNotify"}'
where client_id = 'app';

内容说明

一、认证中心支持单点登出

认证中心支持多个系统在基于 OAuth2.0 实现单点登录之后,当其中一个系统登出之后,其他系统也同时登出的功能。

zlt-uaa 工程中通过参数 unifiedLogout 来配置是否开启单点登出功能,默认为 false

zlt:
  security:
    auth:
      unifiedLogout: true

相关原理和代码解析看在线文档:https://www.kancloud.cn/zlt2000/microservices-platform/2539642

二、sso-demo增加单点登出支持

oidc-ssoweb-sso 这两个单点登录 demo 已经改造支持「单点登出」功能。

关于 demo 的具体的使用步骤大家直接看每个 demo 工程下的 README.md 文件即可。

三、日志链路追踪优化

zlt-log-spring-boot-starter 工程中的日志全链路追踪,由之前的单个 traceId 的基础上增加 2 个字段:spanIdparentId

格式为:[traceId,spanId,parentId]

[a4013b536bbda96d,2258e9dde4eb40a2,a4013b536bbda96d]

相关原理和代码解析看在线文档:https://www.kancloud.cn/zlt2000/microservices-platform/1228555

项目地址

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