新oa待办跳转到待办页面bug修复10
This commit is contained in:
parent
7e0dbe724b
commit
4593cbc091
|
@ -122,16 +122,15 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
|
|||
|
||||
String param = httpServletRequest.getParameter("param");
|
||||
//解码
|
||||
if (param != null) {
|
||||
byte[] decodedBytes = Base64.getDecoder().decode(param);
|
||||
String paramString = new String(decodedBytes, StandardCharsets.UTF_8);
|
||||
try {
|
||||
//获取返回的 sessionId
|
||||
String sessionId = httpServletRequest.getParameter("sessionId");
|
||||
logger.info(String.format("getTrdSSOAuth→sessionId:%s", sessionId));
|
||||
//二次重定向到待办页面,并且不携带EOSS返回的sessionId
|
||||
//二次重定向到待办页面,并且修改EOSS返回的sessionId的key值
|
||||
httpServletResponse.sendRedirect(httpServletRequest.getRequestURI() + "?" + paramString + "&code=" + code+"&eossSessionId="+sessionId);
|
||||
//二次重定向进入
|
||||
//二次重定向进入解
|
||||
if (StringUtils.isNotEmpty(code) && sessionId == null) {
|
||||
//调用EOSS获取token接口
|
||||
String access_token = AuthService.accessToken(code, ip, client, secret);
|
||||
|
@ -155,7 +154,6 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
|
|||
logger.error("二次重定向到待办页面异常!" + e.getMessage());
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue