From 4337d3b9c8879375a09d425ab172f7770de74169 Mon Sep 17 00:00:00 2001 From: wenlukang1 Date: Wed, 18 Jun 2025 10:00:01 +0800 Subject: [PATCH] =?UTF-8?q?EOSS=E8=8E=B7=E5=8F=96code=E6=B7=BB=E5=8A=A0ses?= =?UTF-8?q?sionKeep=E5=8F=82=E6=95=B0=E7=94=A8=E4=BA=8E=E6=A0=87=E8=AF=86?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E9=9C=80=E8=A6=81=E6=90=BA=E5=B8=A6code?= =?UTF-8?q?=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/shkd/sys/sys/eoss/SSOPluginLogin.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/eoss/SSOPluginLogin.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/eoss/SSOPluginLogin.java index 789b962..7be7fda 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/eoss/SSOPluginLogin.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/eoss/SSOPluginLogin.java @@ -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); logger.info(String.format("重定向地址→sendRedirect:%s", ssourl)); } @@ -102,9 +102,9 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler { result.setUser(user); result.setSucess(true); logger.info("SSO用户登录成功,进入苍穹系统"); - String userKey = "user_sessionId_" + user; // 构造一个唯一的键 - DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion"); - cache.put(userKey, sessionId);//将自定义参数加入缓存 +// String userKey = "user_sessionId_" + user; // 构造一个唯一的键 +// DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion"); +// cache.put(userKey, sessionId);//将自定义参数加入缓存 } } catch (Exception e) { throw new KDBizException("获取用户信息接口异常,SSO用户登录失败!" + e);