@@ -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