Skip to content

Commit e7f05b9

Browse files
[Feature] Specify proxy auth explicitly when using system proxy (#300)
## Changes <!-- Summary of your changes that are easy to understand --> In certain cases, customers can use different ways to authenticate proxy even when using the system proxy settings (basic, kerberos etc.). Hence, post this change, the auth for system proxy can be done in different ways and needs to be explicitly specified. ## Tests <!-- How is this tested? --> Tested on a proxy setup in VMs --------- Co-authored-by: hectorcast-db <[email protected]>
1 parent 122ea39 commit e7f05b9

File tree

1 file changed

+1
-1
lines changed
  • databricks-sdk-java/src/main/java/com/databricks/sdk/core/utils

1 file changed

+1
-1
lines changed

databricks-sdk-java/src/main/java/com/databricks/sdk/core/utils/ProxyUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static void setupProxy(ProxyConfig config, HttpClientBuilder builder) {
4141
proxyPort = Integer.parseInt(System.getProperty(protocol + ".proxyPort"));
4242
proxyUser = System.getProperty(protocol + ".proxyUser");
4343
proxyPassword = System.getProperty(protocol + ".proxyPassword");
44-
proxyAuthType = ProxyConfig.ProxyAuthType.BASIC;
44+
proxyAuthType = config.getProxyAuthType();
4545
}
4646
// Override system properties if proxy configuration is explicitly set
4747
if (config.getHost() != null) {

0 commit comments

Comments
 (0)