Skip to content

Commit 93fbd24

Browse files
committed
feat: added option for api auth
1 parent 7e44786 commit 93fbd24

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/webapp/databricks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ def fetch_table_data(
213213
"""
214214
try:
215215
# Initialize the WorkspaceClient with default authentication
216-
client = WorkspaceClient()
216+
client = WorkspaceClient(
217+
host=databricks_vars["DATABRICKS_HOST_URL"],
218+
google_service_account=gcs_vars["GCP_SERVICE_ACCOUNT_EMAIL"],
219+
)
217220
except Exception as e:
218221
raise ValueError(f"Failed to initialize WorkspaceClient: {e}")
219222

0 commit comments

Comments
 (0)