Title: User/interactive Azure AD authentication · Issue #690 · databricks/databricks-sql-python · GitHub
Open Graph Title: User/interactive Azure AD authentication · Issue #690 · databricks/databricks-sql-python
X Title: User/interactive Azure AD authentication · Issue #690 · databricks/databricks-sql-python
Description: #621 by @jprakash-db added a great feature that we will be testing ASAP. Since Entra ID authentication seems to be getting upgraded, I wanted to ask about interactive login. Using databricks-sdk I can perform this user authentication by ...
Open Graph Description: #621 by @jprakash-db added a great feature that we will be testing ASAP. Since Entra ID authentication seems to be getting upgraded, I wanted to ask about interactive login. Using databricks-sdk I ...
X Description: #621 by @jprakash-db added a great feature that we will be testing ASAP. Since Entra ID authentication seems to be getting upgraded, I wanted to ask about interactive login. Using databricks-sdk I ...
Opengraph URL: https://github.com/databricks/databricks-sql-python/issues/690
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"User/interactive Azure AD authentication","articleBody":"#621 by @jprakash-db added a great feature that we will be testing ASAP. Since Entra ID authentication seems to be getting upgraded, I wanted to ask about interactive login.\n\nUsing `databricks-sdk` I can perform this user authentication by doing (from the terminal)\n\n```bash\naz login --use-device-code\n...\nUser is logged in\n```\n\nthen in python\n\n```python\nfrom databricks.sdk import WorkspaceClient\n\nw = WorkspaceClient(host=\"https://adb-XXXXXX.azuredatabricks.net/\")\n```\n\nWould the newly-added Entra ID M2M method be extendable for U2M workflows?\n\nOtherwise, is there an alternative implementation I could use? \n\nThis is what I'm currently doing to manually mint a token in the user interactive workflow currently:\n\n```python\nfrom azure.identity import DefaultAzureCredential\nfrom databricks import sql as dbx_sql\n\n_DATABRICKS_SCOPE = \"2ff814a6-3304-4ab8-85cb-cd0e6f879c1d/.default\"\n\nDATABRICKS_CLUSTER_HOST = \"adb-XXX.azuredatabricks.net\"\nDATABRICKS_CLUSTER_HTTP_PATH = \"/sql/1.0/warehouses/XXX\"\n\ncred = DefaultAzureCredential()\ntoken = cred.get_token(_DATABRICKS_SCOPE)\n\nwith dbx_sql.connect(\n server_hostname=DATABRICKS_CLUSTER_HOST,\n http_path=DATABRICKS_CLUSTER_HTTP_PATH,\n access_token=token.token,\n) as conn, conn.cursor() as c:\n c.execute(\"SELECT current_user(), current_catalog(), current_schema();\")\n print(c.fetchall())\n```\n\nThanks!","author":{"url":"https://github.com/inigohidalgo","@type":"Person","name":"inigohidalgo"},"datePublished":"2025-09-01T15:46:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/690/databricks-sql-python/issues/690"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6edf6bf2-dce7-b10a-212b-d7783bed4ed7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98B8:27873:42F8F22:5D63225:6971453A |
| html-safe-nonce | 9ea47a43d1770a103efbe2cc2b65e1837cecf1b0348db50b6fde44990707197c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEI4OjI3ODczOjQyRjhGMjI6NUQ2MzIyNTo2OTcxNDUzQSIsInZpc2l0b3JfaWQiOiIxNzAwODA3MTQ5NzY5Mjc4Nzc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5f6cb6386643c2c03083169da400bc8ef30f07186601bb225cdad50bc6b4d9c8 |
| hovercard-subject-tag | issue:3373150982 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/databricks/databricks-sql-python/690/issue_layout |
| twitter:image | https://avatars.githubusercontent.com/u/4998052?s=400&v=4 |
| twitter:card | summary |
| og:image | https://avatars.githubusercontent.com/u/4998052?s=400&v=4 |
| og:image:alt | #621 by @jprakash-db added a great feature that we will be testing ASAP. Since Entra ID authentication seems to be getting upgraded, I wanted to ask about interactive login. Using databricks-sdk I ... |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | inigohidalgo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9bd14a55b65b030988a89787ed340c0f040258c3240af6941d85f740f21629a0 |
| turbo-cache-control | no-preview |
| go-import | github.com/databricks/databricks-sql-python git https://github.com/databricks/databricks-sql-python.git |
| octolytics-dimension-user_id | 4998052 |
| octolytics-dimension-user_login | databricks |
| octolytics-dimension-repository_id | 493695132 |
| octolytics-dimension-repository_nwo | databricks/databricks-sql-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 493695132 |
| octolytics-dimension-repository_network_root_nwo | databricks/databricks-sql-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 24a7109a3a584a05e29240fcc1ba60220deccdb8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width