File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sdk/identity/azure-identity/src/main/java/com/azure/identity Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public class WorkloadIdentityCredential implements TokenCredential {
73
73
ValidationUtil .validateTenantIdCharacterRange (tenantId , LOGGER );
74
74
75
75
Configuration configuration = identityClientOptions .getConfiguration () == null
76
- ? Configuration .getGlobalConfiguration ()
76
+ ? Configuration .getGlobalConfiguration (). clone ()
77
77
: identityClientOptions .getConfiguration ();
78
78
79
79
String tenantIdInput
@@ -149,7 +149,7 @@ private String readFederatedTokenFromFile(String filePath) {
149
149
try {
150
150
return Files .readString (Paths .get (filePath ), StandardCharsets .UTF_8 ).trim ();
151
151
} catch (IOException e ) {
152
- throw LOGGER .logExceptionAsError (new RuntimeException ("Failed to read federated token from file: " + filePath , e ));
152
+ throw LOGGER .logExceptionAsError (new RuntimeException ("Failed to read federated token from file. " , e ));
153
153
}
154
154
}
155
155
}
You can’t perform that action at this time.
0 commit comments