Croway commented on code in PR #17116:
URL: https://github.com/apache/camel/pull/17116#discussion_r1952871045


##########
components/camel-http/src/main/java/org/apache/camel/component/http/OAuth2ClientConfigurer.java:
##########
@@ -104,7 +108,10 @@ private JsonObject getAccessTokenResponse(HttpClient 
httpClient) throws IOExcept
 
         httpPost.addHeader(HttpHeaders.AUTHORIZATION,
                 HttpCredentialsHelper.generateBasicAuthHeader(clientId, 
clientSecret));
-        httpPost.setEntity(new StringEntity("grant_type=client_credentials", 
ContentType.APPLICATION_FORM_URLENCODED));
+        if (null != resourceIndicator) {
+            bodyStr = String.join(bodyStr, "&resourceIndicator=" + 
resourceIndicator);

Review Comment:
   is `resourceIndicator` correct? or it should be only `resource`? moreover, 
should it be a list? `&resource=res1&resource=res2...`



-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to