Browse Source

sso外网

bihuisong 11 months ago
parent
commit
432d2e72fb

+ 5 - 3
zhsq_qk-framework/src/main/java/zhsq_qk/framework/sso/SsoRequestUtil.java

@@ -23,7 +23,7 @@ import java.util.Random;
 public class SsoRequestUtil {
 
 
-    public String host = "http://192.168.10.12:3000";
+    public String host = "http://192.168.10.12:3001";
 
     /**
      * SSO-Server端 统一认证地址
@@ -116,9 +116,11 @@ public class SsoRequestUtil {
         if(isNotEmpty(client)) {
             checkUrl += "&client=" + client;
         }
-        // 如果打开了单点注销
+        // 如果打开了单点注销 http://192.168.10.12:3000/sso/checkTicket?ticket=FOLSRPySMbrtaPKr5J9SwvyfN0TlWqnWDA25zI4neOoIWkpkIRrSOlNrN4QZ3sl9&ssoLogoutCall=http://116.142.80.12:3042/sso/logoutCall
         if(isSlo) {
-            String ssoLogoutCall = request.getRequestURL().toString().replace(currPath, "/sso/logoutCall");
+//            String ssoLogoutCall = request.getRequestURL().toString().replace(currPath, "/sso/logoutCall");
+            //外网访问只能写死
+            String ssoLogoutCall = "http://192.168.1.11:3042/sso/logoutCall";
             checkUrl += "&ssoLogoutCall=" + ssoLogoutCall;
         }
         // 发起请求

+ 3 - 1
zhsq_qk-ui/src/api/sso/method-util.js

@@ -1,7 +1,9 @@
 import axios from 'axios'
 
 // sso-client 的后端服务地址
-export const baseUrl = "http://192.168.1.11:3042";
+// export const baseUrl = "http://192.168.1.11:3042";
+//外网ip
+export const baseUrl = "http://116.142.80.12:3042";
 // export const baseUrl = process.env.VUE_APP_BASE_API;