Skip to content

Commit f667264

Browse files
mpatalonMarcin Patalon
andauthored
Add support for Azure US Government (#207)
Co-authored-by: Marcin Patalon <[email protected]>
1 parent 60fe7f6 commit f667264

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/jenkinsci/plugins/azurekeyvaultplugin/AzureKeyVaultCredentialRetriever.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public static TokenCredential getCredentialById(String credentialID, Run<?, ?> b
3535
CredentialsProvider.track(build, cred);
3636
AzureCredentials azureCredentials = (AzureCredentials) cred;
3737
credential = new ClientSecretCredentialBuilder()
38+
.authorityHost(azureCredentials.getAzureEnvironment().getActiveDirectoryEndpoint())
3839
.clientId(azureCredentials.getClientId())
3940
.clientSecret(azureCredentials.getPlainClientSecret())
4041
.httpClient(HttpClientRetriever.get())

0 commit comments

Comments
 (0)