From c51cb6e5e05dd00989fe56a72da81453400cd3b7 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Fri, 9 Dec 2022 11:40:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):?= =?UTF-8?q?=20OAuth2=E8=AE=A4=E8=AF=81=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/metersphere/gateway/service/SSOService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/gateway/src/main/java/io/metersphere/gateway/service/SSOService.java b/framework/gateway/src/main/java/io/metersphere/gateway/service/SSOService.java index 2cbe010e9d..900c6fcf8d 100644 --- a/framework/gateway/src/main/java/io/metersphere/gateway/service/SSOService.java +++ b/framework/gateway/src/main/java/io/metersphere/gateway/service/SSOService.java @@ -278,6 +278,7 @@ public class SSOService { HttpEntity> httpEntity = new HttpEntity<>(headers); ResponseEntity response = restTemplate.exchange(userInfoUrl, HttpMethod.GET, httpEntity, String.class); resultObj = JSON.parseObject(response.getBody(), new TypeReference>() {}); + LogUtil.info("user info: " + response.getBody()); } catch (Exception e) { LogUtil.error("fail to get user info", e); MSException.throwException("fail to get user info!");