两套单点登录+两套系统待办跳转bug修复3
This commit is contained in:
parent
0f5d2b6160
commit
308edcc188
|
@ -52,10 +52,11 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
|
||||||
client = CLIENT_ID;
|
client = CLIENT_ID;
|
||||||
secret = CLIENT_SECRET;
|
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));
|
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 queryUrlNew = Base64.getEncoder().encodeToString(queryUrlOld.getBytes(StandardCharsets.UTF_8));
|
||||||
String redirect = skIP + "/index.html?param=" + queryUrlNew;
|
String redirect = skIP + "/index.html?param=" + queryUrlNew;
|
||||||
|
logger.info(String.format("callTrdSSOLogin→redirect:%s", queryUrlOld));
|
||||||
if(queryUrlOld.contains("code")){
|
if(queryUrlOld.contains("code")){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -74,6 +75,7 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
|
||||||
//重定向到eoss统一认证的地址 获取授权码code
|
//重定向到eoss统一认证的地址 获取授权码code
|
||||||
ssourl = String.format("%s/sso2/authCenter/authorize?client_id=%s&response_type=code&sessionKeep=true&authType=0&redirect_uri=%s",
|
ssourl = String.format("%s/sso2/authCenter/authorize?client_id=%s&response_type=code&sessionKeep=true&authType=0&redirect_uri=%s",
|
||||||
ip, client, redirect);
|
ip, client, redirect);
|
||||||
|
//退出系统
|
||||||
if (httpServletRequest.getRequestURI().contains("/auth/logout.do")) {
|
if (httpServletRequest.getRequestURI().contains("/auth/logout.do")) {
|
||||||
String userName = UserServiceHelper.getCurrentUser("name").getString("name");
|
String userName = UserServiceHelper.getCurrentUser("name").getString("name");
|
||||||
DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion");
|
DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion");
|
||||||
|
|
Loading…
Reference in New Issue