refactor(系统设置): OAuth2认证日志记录

This commit is contained in:
shiziyuan9527 2022-12-09 11:40:59 +08:00 committed by lyh
parent 047c1b6579
commit c51cb6e5e0
1 changed files with 1 additions and 0 deletions

View File

@ -278,6 +278,7 @@ public class SSOService {
HttpEntity<MultiValueMap<String, String>> httpEntity = new HttpEntity<>(headers); HttpEntity<MultiValueMap<String, String>> httpEntity = new HttpEntity<>(headers);
ResponseEntity<String> response = restTemplate.exchange(userInfoUrl, HttpMethod.GET, httpEntity, String.class); ResponseEntity<String> response = restTemplate.exchange(userInfoUrl, HttpMethod.GET, httpEntity, String.class);
resultObj = JSON.parseObject(response.getBody(), new TypeReference<HashMap<String, Object>>() {}); resultObj = JSON.parseObject(response.getBody(), new TypeReference<HashMap<String, Object>>() {});
LogUtil.info("user info: " + response.getBody());
} catch (Exception e) { } catch (Exception e) {
LogUtil.error("fail to get user info", e); LogUtil.error("fail to get user info", e);
MSException.throwException("fail to get user info!"); MSException.throwException("fail to get user info!");