新oa待办跳转到待办页面bug修复6
This commit is contained in:
parent
d6cb67f60c
commit
61a224f9cf
|
@ -54,12 +54,15 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
|
|||
secret = CLIENT_SECRET;
|
||||
}
|
||||
logger.info(String.format("callTrdSSOLogin→queryUrl:%s", queryUrl));
|
||||
String ssourl = ip + "/service/SGE-project-sctz-master/pc/dist/login.html";
|
||||
String ssourl;
|
||||
try {
|
||||
//非待办登录到首页
|
||||
if (!queryUrl.contains("yzjShareOpen.do")) {
|
||||
//认证中心的登录地址
|
||||
logger.info(String.format("eoss_ip:%s,client_id:%s,client_secret:%s,重定向地址:%s", ip, client, secret, s));
|
||||
//重定向的统一认证的地址 获取授权码
|
||||
ssourl = String.format("%s/sso2/authCenter/authorize?client_id=%s&response_type=code&sessionKeep=true&authType=0&redirect_uri=%s",
|
||||
ip, client, s);
|
||||
if (httpServletRequest.getRequestURI().contains("/auth/logout.do")) {
|
||||
String userName = UserServiceHelper.getCurrentUser("name").getString("name");
|
||||
DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion");
|
||||
|
@ -68,10 +71,8 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
|
|||
if (sessionId != null) {
|
||||
AuthService.logout(ip, sessionId);
|
||||
}
|
||||
ssourl = ip + "/service/SGE-project-sctz-master/pc/dist/login.html";
|
||||
}
|
||||
//重定向的统一认证的地址 获取授权码
|
||||
ssourl = String.format("%s/sso2/authCenter/authorize?client_id=%s&response_type=code&sessionKeep=true&authType=0&redirect_uri=%s",
|
||||
ip, client, s);
|
||||
} else {
|
||||
queryUrl = Base64.getEncoder().encodeToString(queryUrl.getBytes(StandardCharsets.UTF_8));
|
||||
String skUrl = RevProxyUtil.getURLContextPath(httpServletRequest);
|
||||
|
|
Loading…
Reference in New Issue