From 2bbd50fb56275986e2a8658c373686d56804b99b Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 29 八月 2025 14:14:52 +0800
Subject: [PATCH] yml配置

---
 ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java |   28 ++--------------------------
 1 files changed, 2 insertions(+), 26 deletions(-)

diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java
index bc666cb..385d707 100644
--- a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java
+++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java
@@ -4,7 +4,6 @@
 import javax.net.ssl.SSLContext;
 
 import com.alibaba.fastjson.JSON;
-import com.ruoyi.common.config.SsoBean;
 import com.ruoyi.framework.model.SsoOauthTokenModel;
 import com.ruoyi.framework.model.SsoUserInfoModel;
 import com.ruoyi.framework.web.ssoAuth.SsoCodeAuthenticationToken;
@@ -85,9 +84,6 @@
 
     @Autowired
     private ISysConfigService configService;
-
-    @Autowired
-    private SsoBean ssoBean;
 
     @Autowired
     private RedisTemplate redisTemplate;
@@ -296,21 +292,7 @@
      * @return
      */
     public SsoOauthTokenModel getSsoAccessToken(String code) {
-        List<NameValuePair> list = new LinkedList<>();
-        list.add(new BasicNameValuePair("grant_type", "authorization_code"));
-        list.add(new BasicNameValuePair("code", code));
-        list.add(new BasicNameValuePair("client_id", ssoBean.getClientId()));
-        list.add(new BasicNameValuePair("client_secret", ssoBean.getClientSecret()));
-        list.add(new BasicNameValuePair("redirect_uri", ssoBean.getCallbackUrl()));
-
-        Map<String, String> headers = new HashMap<>();
-        headers.put("Content-Type", "application/x-www-form-urlencoded");
-        headers.put("Accept", "application/json");
-        String result = doPost(ssoBean.getUrl() + "/oauth2/token", headers, list);
-        if (org.apache.commons.lang3.StringUtils.isBlank(result)) {
-            return null;
-        }
-        return JSON.parseObject(result, SsoOauthTokenModel.class);
+        return null;
     }
 
     /**
@@ -319,13 +301,7 @@
      * @return
      */
     public SsoUserInfoModel getSsoUserInfo(String accessToken) {
-        Map<String, String> headers = new HashMap<>();
-        headers.put("Authorization", "Bearer " + accessToken);
-        String result = doPost(ssoBean.getUrl() + "/userinfo", headers, null);
-        if (org.apache.commons.lang3.StringUtils.isBlank(result)) {
-            return null;
-        }
-        return JSON.parseObject(result, SsoUserInfoModel.class);
+        return null;
     }
 
     public static String doPost(String url, Map<String, String> headers, List<NameValuePair> params) {

--
Gitblit v1.9.3