新oa待办跳转到待办页面bug修复6
This commit is contained in:
parent
a508cf5e7f
commit
d6cb67f60c
|
@ -58,15 +58,6 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
|
||||||
try {
|
try {
|
||||||
//非待办登录到首页
|
//非待办登录到首页
|
||||||
if (!queryUrl.contains("yzjShareOpen.do")) {
|
if (!queryUrl.contains("yzjShareOpen.do")) {
|
||||||
//重定向的统一认证的地址 获取授权码
|
|
||||||
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);
|
|
||||||
logger.info("callTrdSSOLogin→getURLContextPath:" + skUrl);
|
|
||||||
String redirect = skIP + "/index.html?param=" + queryUrl;
|
|
||||||
logger.info("callTrdSSOLogin→skip:" + redirect);
|
|
||||||
//认证中心的登录地址
|
//认证中心的登录地址
|
||||||
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));
|
||||||
if (httpServletRequest.getRequestURI().contains("/auth/logout.do")) {
|
if (httpServletRequest.getRequestURI().contains("/auth/logout.do")) {
|
||||||
|
@ -77,12 +68,20 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
|
||||||
if (sessionId != null) {
|
if (sessionId != null) {
|
||||||
AuthService.logout(ip, sessionId);
|
AuthService.logout(ip, sessionId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
//重定向的统一认证的地址 获取授权码
|
||||||
|
ssourl = String.format("%s/sso2/authCenter/authorize?client_id=%s&response_type=code&sessionKeep=true&authType=0&redirect_uri=%s",
|
||||||
|
ip, client, s);
|
||||||
} else {
|
} else {
|
||||||
|
queryUrl = Base64.getEncoder().encodeToString(queryUrl.getBytes(StandardCharsets.UTF_8));
|
||||||
|
String skUrl = RevProxyUtil.getURLContextPath(httpServletRequest);
|
||||||
|
logger.info("callTrdSSOLogin→getURLContextPath:" + skUrl);
|
||||||
|
String redirect = skIP + "/index.html?param=" + queryUrl;
|
||||||
|
logger.info("callTrdSSOLogin→skip:" + redirect);
|
||||||
//重定向的统一认证的地址 获取授权码
|
//重定向的统一认证的地址 获取授权码
|
||||||
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);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
logger.info(String.format("callTrdSSOLogin→→sendRedirect:%s", ssourl));
|
logger.info(String.format("callTrdSSOLogin→→sendRedirect:%s", ssourl));
|
||||||
httpServletResponse.sendRedirect(ssourl);
|
httpServletResponse.sendRedirect(ssourl);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
Loading…
Reference in New Issue