MikaelAnderssonWigander commented on code in PR #17116: URL: https://github.com/apache/camel/pull/17116#discussion_r1953930679
########## 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: Yes, the argument should be ```&resource``` But the resource is defined as: _The parameter value identifies a resource to which the client is requesting access_ so a singular URI -- 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