Skip to content

Commit

Permalink
Fix MSI version logic (#34375)
Browse files Browse the repository at this point in the history
  • Loading branch information
g2vinay committed Apr 10, 2023
1 parent 18af041 commit 02f6ef5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ public Mono<AccessToken> authenticateToManagedIdentityEndpoint(String identityEn
payload.append("?resource=");
payload.append(urlEncode(resource));
payload.append("&api-version=");
payload.append(MSI_ENDPOINT_VERSION);
payload.append(URLEncoder.encode(endpointVersion, StandardCharsets.UTF_8.name()));
if (clientId != null) {
if (endpointVersion.equals(IDENTITY_ENDPOINT_VERSION)) {
payload.append("&client_id=");
Expand Down

0 comments on commit 02f6ef5

Please sign in to comment.