mirror of
https://gitee.com/fujieid/jap.git
synced 2024-12-03 11:49:22 +08:00
🐛 reslove compatibility of new simple-http util
This commit is contained in:
parent
97763a4c6d
commit
073e7d6b16
@ -214,9 +214,9 @@ public class Oauth2Util {
|
|||||||
|
|
||||||
String res = null;
|
String res = null;
|
||||||
if (null == endpointMethodType || Oauth2EndpointMethodType.GET == endpointMethodType) {
|
if (null == endpointMethodType || Oauth2EndpointMethodType.GET == endpointMethodType) {
|
||||||
res = HttpUtil.get(url, params, false);
|
res = HttpUtil.get(url, params, false).getBody();
|
||||||
} else {
|
} else {
|
||||||
res = HttpUtil.post(url, params, false);
|
res = HttpUtil.post(url, params, false).getBody();
|
||||||
}
|
}
|
||||||
return JsonUtil.parseKv(res);
|
return JsonUtil.parseKv(res);
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ public class OidcUtil {
|
|||||||
|
|
||||||
String response = null;
|
String response = null;
|
||||||
try {
|
try {
|
||||||
response = HttpUtil.get(discoveryUrl);
|
response = HttpUtil.get(discoveryUrl).getBody();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new OidcException("Cannot access discovery url: " + discoveryUrl);
|
throw new OidcException("Cannot access discovery url: " + discoveryUrl);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user