nevdmitry commented on code in PR #2339:
URL: https://github.com/apache/ignite-3/pull/2339#discussion_r1291094119


##########
modules/cli/src/main/java/org/apache/ignite/internal/cli/core/rest/ApiClientFactory.java:
##########
@@ -92,7 +92,7 @@ public ApiClient getClient(String path) {
      * @return created API client.
      */
     public ApiClient getClient(String path, String username, String password) {
-        ApiClientSettingsBuilder clientSettingsBuilder = settings(path, false);
+        ApiClientSettingsBuilder clientSettingsBuilder = settingsBuilder(path);
         clientSettingsBuilder.basicAuthenticationUsername(username);
         clientSettingsBuilder.basicAuthenticationPassword(password);
         return getClientFromSettings(clientSettingsBuilder.build());

Review Comment:
   To move those methods into builder we need to inject ConfigManagerProvider 
there, that is not good. Lets leave settingsWithAuth and settingWithoutAuth in 
ApiClientFactory



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to