Skip to content

Commit

Permalink
Add support for Azure US Government (#207)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcin Patalon <[email protected]>
  • Loading branch information
mpatalon and Marcin Patalon authored Aug 21, 2023
1 parent 60fe7f6 commit f667264
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit f667264

Please sign in to comment.