新oa单点登录bug调整

This commit is contained in:
wenlukang1 2025-07-02 14:45:48 +08:00
parent 478c78d798
commit a32287ef70
1 changed files with 2 additions and 1 deletions

View File

@ -62,9 +62,10 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
//非待办登录到首页 //非待办登录到首页
if (!queryUrl.contains("wf_approvalpage")) { if (!queryUrl.contains("wf_approvalpage")) {
//认证中心的登录地址 //认证中心的登录地址
String redirect = skIP + "/index.html?"+queryUrl;
//重定向的统一认证的地址 获取授权码 //重定向的统一认证的地址 获取授权码
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, s); ip, client, redirect);
if (httpServletRequest.getRequestURI().contains("/auth/logout.do")) { if (httpServletRequest.getRequestURI().contains("/auth/logout.do")) {
String userName = UserServiceHelper.getCurrentUser("name").getString("name"); String userName = UserServiceHelper.getCurrentUser("name").getString("name");
DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion"); DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion");