SbloodyS commented on code in PR #16413:
URL:
https://github.com/apache/dolphinscheduler/pull/16413#discussion_r1703446144
##########
tools/dependencies/known-dependencies.txt:
##########
@@ -251,8 +251,9 @@ netty-transport-native-unix-common-4.1.53.Final.jar
nimbus-jose-jwt-9.8.1.jar
nimbus-jose-jwt-9.10.jar
okhttp-2.7.5.jar
-okhttp-4.9.3.jar
-okio-2.8.0.jar
+okhttp-4.12.0.jar
+okio-3.6.0.jar
+okio-jvm-3.6.0.jar
Review Comment:
Fixed.
##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/LoginController.java:
##########
@@ -223,16 +225,28 @@ public void loginByAuth2(@RequestParam String code,
@RequestParam String provide
requestParamsMap.put("grant_type", "authorization_code");
requestParamsMap.put("redirect_uri",
String.format("%s?provider=%s",
oAuth2ClientProperties.getRedirectUri(), provider));
- String tokenJsonStr =
OkHttpUtils.post(oAuth2ClientProperties.getTokenUri(), tokenRequestHeader,
- requestParamsMap, requestBody);
+ OkHttpRequestHeaders okHttpRequestHeadersPost = new
OkHttpRequestHeaders();
+ okHttpRequestHeadersPost.setHeaders(tokenRequestHeader);
+
okHttpRequestHeadersPost.setOkHttpRequestHeaderContentType(OkHttpRequestHeaderContentType.APPLICATION_JSON);
+ int timeout = 30000;
Review Comment:
Fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]