mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-19 10:08:07 +08:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -65,4 +65,12 @@ public class StpLogicJwtForSimple extends StpLogic {
|
||||
return SaJwtUtil.getPayloadsNotCheck(tokenValue, loginType, jwtSecretKey()).get(key);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean getConfigOfIsShare() {
|
||||
// 为确保 jwt-simple 模式的 token Extra 数据生成不受旧token影响,这里必须让 is-share 恒为 false
|
||||
// 即:在使用 jwt-simple 模式后,即使配置了 is-share=true 也不能复用旧 Token,必须每次创建新 Token
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -319,7 +319,9 @@ public class SaSsoProcessor {
|
||||
StpLogic stpLogic = ssoTemplate.getStpLogic();
|
||||
|
||||
// 开始处理
|
||||
stpLogic.logout();
|
||||
if(stpLogic.isLogin()) {
|
||||
stpLogic.logout(stpLogic.getLoginId());
|
||||
}
|
||||
|
||||
// 返回
|
||||
return ssoLogoutBack(req, res);
|
||||
@@ -337,7 +339,7 @@ public class SaSsoProcessor {
|
||||
|
||||
// 如果未登录,则无需注销
|
||||
if(stpLogic.isLogin() == false) {
|
||||
return SaResult.ok();
|
||||
return ssoLogoutBack(req, res);
|
||||
}
|
||||
|
||||
// 调用 sso-server 认证中心单点注销API
|
||||
|
Reference in New Issue
Block a user