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
oidc-sso
和 web-sso
这两个单点登录 demo 已经改造支持「单点登出」功能。
关于 demo 的具体的使用步骤大家直接看每个 demo 工程下的 README.md 文件即可。
zlt-log-spring-boot-starter
工程中的日志全链路追踪,由之前的单个 traceId
的基础上增加 2 个字段:spanId
和 parentId
格式为:[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