EOSS获取code添加sessionKeep参数用于标识是否需要携带code返回
This commit is contained in:
parent
e7dd1e7c3e
commit
4337d3b9c8
|
@ -51,7 +51,7 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
|
||||||
/*
|
/*
|
||||||
*重定向的统一认证的地址 获取授权码
|
*重定向的统一认证的地址 获取授权码
|
||||||
*/
|
*/
|
||||||
ssourl = String.format("%s/sso2/authCenter/authorize?client_id=%s&response_type=code&sessionKeep=false&authType=0&redirect_uri=%s",
|
ssourl = String.format("%s/sso2/authCenter/authorize?client_id=%s&response_type=code&authType=0&redirect_uri=%s",
|
||||||
EOSS_IP, CLIENT_ID, s);
|
EOSS_IP, CLIENT_ID, s);
|
||||||
logger.info(String.format("重定向地址→sendRedirect:%s", ssourl));
|
logger.info(String.format("重定向地址→sendRedirect:%s", ssourl));
|
||||||
}
|
}
|
||||||
|
@ -102,9 +102,9 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
|
||||||
result.setUser(user);
|
result.setUser(user);
|
||||||
result.setSucess(true);
|
result.setSucess(true);
|
||||||
logger.info("SSO用户登录成功,进入苍穹系统");
|
logger.info("SSO用户登录成功,进入苍穹系统");
|
||||||
String userKey = "user_sessionId_" + user; // 构造一个唯一的键
|
// String userKey = "user_sessionId_" + user; // 构造一个唯一的键
|
||||||
DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion");
|
// DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion");
|
||||||
cache.put(userKey, sessionId);//将自定义参数加入缓存
|
// cache.put(userKey, sessionId);//将自定义参数加入缓存
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new KDBizException("获取用户信息接口异常,SSO用户登录失败!" + e);
|
throw new KDBizException("获取用户信息接口异常,SSO用户登录失败!" + e);
|
||||||
|
|
Loading…
Reference in New Issue