From aeab1e4628fd7b4b7582942c730a9abb66bc67ea Mon Sep 17 00:00:00 2001 From: Vinay Gera Date: Fri, 26 Jul 2019 20:01:49 -0400 Subject: [PATCH 1/2] Configuration FIx --- .../com/azure/identity/credential/EnvironmentCredential.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/identity/azure-identity/src/main/java/com/azure/identity/credential/EnvironmentCredential.java b/sdk/identity/azure-identity/src/main/java/com/azure/identity/credential/EnvironmentCredential.java index 3faceb97827ac..5052164608e00 100644 --- a/sdk/identity/azure-identity/src/main/java/com/azure/identity/credential/EnvironmentCredential.java +++ b/sdk/identity/azure-identity/src/main/java/com/azure/identity/credential/EnvironmentCredential.java @@ -32,7 +32,7 @@ public EnvironmentCredential() { * @param identityClientOptions the options for configuring the identity client */ public EnvironmentCredential(IdentityClientOptions identityClientOptions) { - this.configuration = ConfigurationManager.getConfiguration(); + this.configuration = ConfigurationManager.getConfiguration().clone(); this.identityClientOptions = identityClientOptions; } From 4f4e8465bf914d7d5ac743fd9c7189d8a3fe79b6 Mon Sep 17 00:00:00 2001 From: Vinay Gera Date: Tue, 30 Jul 2019 20:07:37 -0400 Subject: [PATCH 2/2] Dummy commit --- .../com/azure/identity/credential/EnvironmentCredential.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/identity/azure-identity/src/main/java/com/azure/identity/credential/EnvironmentCredential.java b/sdk/identity/azure-identity/src/main/java/com/azure/identity/credential/EnvironmentCredential.java index 5052164608e00..2c0bce8c72450 100644 --- a/sdk/identity/azure-identity/src/main/java/com/azure/identity/credential/EnvironmentCredential.java +++ b/sdk/identity/azure-identity/src/main/java/com/azure/identity/credential/EnvironmentCredential.java @@ -42,7 +42,7 @@ public Mono getToken(String... scopes) { if (configuration.contains(BaseConfigurations.AZURE_CLIENT_ID) && configuration.contains(BaseConfigurations.AZURE_CLIENT_SECRET) && configuration.contains(BaseConfigurations.AZURE_TENANT_ID)) { - // TODO: support other clouds + // TODO: support other clouds. return new ClientSecretCredential(identityClientOptions) .clientId(configuration.get(BaseConfigurations.AZURE_CLIENT_ID)) .clientSecret(configuration.get(BaseConfigurations.AZURE_CLIENT_SECRET))