File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
databricks-sdk-java/src/main/java/com/databricks/sdk/core/oauth Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 66import com .databricks .sdk .core .HeaderFactory ;
77import java .io .IOException ;
88import java .nio .file .Path ;
9+ import java .util .Objects ;
910import org .slf4j .Logger ;
1011import org .slf4j .LoggerFactory ;
1112
@@ -44,9 +45,12 @@ public String authType() {
4445
4546 @ Override
4647 public HeaderFactory configure (DatabricksConfig config ) {
47- if (config .getHost () == null || config .getAuthType () != "external-browser" ) {
48+ if (config .getHost () == null || ! Objects . equals ( config .getAuthType (), "external-browser" ) ) {
4849 return null ;
4950 }
51+ if (config .getClientId () == null && config .getAzureClientId () == null ) {
52+ config .setClientId ("databricks-cli" );
53+ }
5054 try {
5155 if (tokenCache == null ) {
5256 // Create a default FileTokenCache based on config
You can’t perform that action at this time.
0 commit comments