新oa待办跳转到待办页面bug修复12
This commit is contained in:
parent
23c23c90c9
commit
99365b776a
|
@ -79,7 +79,7 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
|
||||||
queryUrl = Base64.getEncoder().encodeToString(queryUrl.getBytes(StandardCharsets.UTF_8));
|
queryUrl = Base64.getEncoder().encodeToString(queryUrl.getBytes(StandardCharsets.UTF_8));
|
||||||
String skUrl = RevProxyUtil.getURLContextPath(httpServletRequest);
|
String skUrl = RevProxyUtil.getURLContextPath(httpServletRequest);
|
||||||
logger.info("callTrdSSOLogin→getURLContextPath:" + skUrl);
|
logger.info("callTrdSSOLogin→getURLContextPath:" + skUrl);
|
||||||
String redirect = "http://127.0.0.1:8881/ierp" + "/index.html?param=" + queryUrl;
|
String redirect = skIP + "/index.html?param=" + queryUrl;
|
||||||
logger.info("callTrdSSOLogin→skip:" + redirect);
|
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",
|
||||||
|
@ -135,7 +135,7 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//二次重定向进入解
|
//二次重定向进入
|
||||||
if (StringUtils.isNotEmpty(code) && StringUtils.isEmpty(sessionId) ) {
|
if (StringUtils.isNotEmpty(code) && StringUtils.isEmpty(sessionId) ) {
|
||||||
//调用EOSS获取token接口
|
//调用EOSS获取token接口
|
||||||
String access_token = AuthService.accessToken(code, ip, client, secret);
|
String access_token = AuthService.accessToken(code, ip, client, secret);
|
||||||
|
|
Loading…
Reference in New Issue