两套单点登录+两套系统待办跳转bug修复3

This commit is contained in:
wenlukang1 2025-07-03 17:33:24 +08:00
parent 0f5d2b6160
commit 308edcc188
1 changed files with 3 additions and 1 deletions

View File

@ -52,10 +52,11 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
client = CLIENT_ID;
secret = CLIENT_SECRET;
}
logger.info(String.format("callTrdSSOLogin→queryUrl%s", queryUrlOld));
logger.info(String.format("callTrdSSOLogin→queryUrlOld%s", queryUrlOld));
logger.info(String.format("eoss_ip:%s,client_id:%s,client_secret:%s,重定向地址:%s", ip, client, secret, s));
String queryUrlNew = Base64.getEncoder().encodeToString(queryUrlOld.getBytes(StandardCharsets.UTF_8));
String redirect = skIP + "/index.html?param=" + queryUrlNew;
logger.info(String.format("callTrdSSOLogin→redirect%s", queryUrlOld));
if(queryUrlOld.contains("code")){
return;
}
@ -74,6 +75,7 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
//重定向到eoss统一认证的地址 获取授权码code
ssourl = String.format("%s/sso2/authCenter/authorize?client_id=%s&response_type=code&sessionKeep=true&authType=0&redirect_uri=%s",
ip, client, redirect);
//退出系统
if (httpServletRequest.getRequestURI().contains("/auth/logout.do")) {
String userName = UserServiceHelper.getCurrentUser("name").getString("name");
DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion");