From f667264eaccd5ef9a16553d4418fd106120b02e8 Mon Sep 17 00:00:00 2001 From: Marcin Patalon Date: Mon, 21 Aug 2023 14:37:54 +0200 Subject: [PATCH] Add support for Azure US Government (#207) Co-authored-by: Marcin Patalon --- .../azurekeyvaultplugin/AzureKeyVaultCredentialRetriever.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/jenkinsci/plugins/azurekeyvaultplugin/AzureKeyVaultCredentialRetriever.java b/src/main/java/org/jenkinsci/plugins/azurekeyvaultplugin/AzureKeyVaultCredentialRetriever.java index 08f9f02..399bc17 100644 --- a/src/main/java/org/jenkinsci/plugins/azurekeyvaultplugin/AzureKeyVaultCredentialRetriever.java +++ b/src/main/java/org/jenkinsci/plugins/azurekeyvaultplugin/AzureKeyVaultCredentialRetriever.java @@ -35,6 +35,7 @@ public static TokenCredential getCredentialById(String credentialID, Run b CredentialsProvider.track(build, cred); AzureCredentials azureCredentials = (AzureCredentials) cred; credential = new ClientSecretCredentialBuilder() + .authorityHost(azureCredentials.getAzureEnvironment().getActiveDirectoryEndpoint()) .clientId(azureCredentials.getClientId()) .clientSecret(azureCredentials.getPlainClientSecret()) .httpClient(HttpClientRetriever.get())