Skip to content

Commit 192a771

Browse files
committed
Log a warning when no valid authentication method is detected
1 parent df104ff commit 192a771

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/connector/connector.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,12 @@ func prepareClientAuth(_ context.Context, cfg *config.Databricks, l *zap.Logger)
294294
)
295295
return cAuth
296296
default:
297+
l.Warn(
298+
"no valid authentication method detected, falling back to NoAuth. " +
299+
"This will likely cause API calls to fail. " +
300+
"Please configure one of: OAuth (client-id + client-secret), " +
301+
"username/password, or personal access token (workspace-tokens + workspaces)",
302+
)
297303
return &databricks.NoAuth{}
298304
}
299305
}

0 commit comments

Comments
 (0)