Skip to content

Commit 3d2076d

Browse files
committed
done
1 parent a7d9fef commit 3d2076d

2 files changed

Lines changed: 5 additions & 18 deletions

File tree

databricks-sdk-java/src/main/java/com/databricks/sdk/core/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public Builder withDatabricksConfig(DatabricksConfig config) {
5252
this.getAuthTypeFunc = v -> config.getAuthType();
5353
this.httpClient = config.getHttpClient();
5454
this.debugTruncateBytes = config.getDebugTruncateBytes();
55-
this.accountId = config.getAccountId();
55+
this.accountId = config.getAccountId();
5656
this.workspaceId = config.getWorkspaceId();
5757
this.isDebugHeaders = config.isDebugHeaders();
5858

databricks-sdk-java/src/main/java/com/databricks/sdk/core/DatabricksConfig.java

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,6 @@ public synchronized Map<String, String> authenticate() throws DatabricksExceptio
249249
}
250250
Map<String, String> headers = new HashMap<>(headerFactory.headers());
251251

252-
// For unified hosts with workspace operations, add the X-Databricks-Org-Id header
253-
if (getHostType() == HostType.UNIFIED && workspaceId != null && !workspaceId.isEmpty()) {
254-
headers.put("X-Databricks-Org-Id", workspaceId);
255-
}
256-
257252
return headers;
258253
} catch (DatabricksException e) {
259254
String msg = String.format("%s auth: %s", credentialsProvider.authType(), e.getMessage());
@@ -487,17 +482,13 @@ public DatabricksConfig setAzureUseMsi(boolean azureUseMsi) {
487482
return this;
488483
}
489484

490-
/**
491-
* @deprecated Use {@link #getAzureUseMsi()} instead.
492-
*/
485+
/** @deprecated Use {@link #getAzureUseMsi()} instead. */
493486
@Deprecated()
494487
public boolean getAzureUseMSI() {
495488
return azureUseMsi;
496489
}
497490

498-
/**
499-
* @deprecated Use {@link #getAzureUseMsi()} instead.
500-
*/
491+
/** @deprecated Use {@link #getAzureUseMsi()} instead. */
501492
@Deprecated
502493
public DatabricksConfig setAzureUseMSI(boolean azureUseMsi) {
503494
this.azureUseMsi = azureUseMsi;
@@ -772,9 +763,7 @@ public OpenIDConnectEndpoints getOidcEndpoints() throws IOException {
772763
return getDatabricksOidcEndpoints();
773764
}
774765

775-
/**
776-
* @return The Azure Entra ID OIDC endpoints.
777-
*/
766+
/** @return The Azure Entra ID OIDC endpoints. */
778767
public OpenIDConnectEndpoints getAzureEntraIdWorkspaceEndpoints() throws IOException {
779768
if (isAzure() && getAzureClientId() != null) {
780769
Request request = new Request("GET", getHost() + "/oidc/oauth2/v2.0/authorize");
@@ -790,9 +779,7 @@ public OpenIDConnectEndpoints getAzureEntraIdWorkspaceEndpoints() throws IOExcep
790779
return null;
791780
}
792781

793-
/**
794-
* @return The Databricks OIDC endpoints.
795-
*/
782+
/** @return The Databricks OIDC endpoints. */
796783
public OpenIDConnectEndpoints getDatabricksOidcEndpoints() throws IOException {
797784
if (discoveryUrl == null) {
798785
return fetchDefaultOidcEndpoints();

0 commit comments

Comments
 (0)