提交 2c623eae 编写于 作者: 智布道's avatar 智布道 👁

Merge branch 'dev' of github.com:fujieid/jap into dev

...@@ -215,9 +215,9 @@ public class Oauth2Util { ...@@ -215,9 +215,9 @@ public class Oauth2Util {
SimpleHttpResponse res = null; SimpleHttpResponse 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.getBody()); return JsonUtil.parseKv(res.getBody());
} }
......
...@@ -46,7 +46,7 @@ public class OidcUtil { ...@@ -46,7 +46,7 @@ public class OidcUtil {
SimpleHttpResponse response = null; SimpleHttpResponse 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);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册