Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Add more details on how you are using service principal for authentication. Commented Sep 26, 2024 at 5:53
  • Hi Jayashankar,We start by creating an Azure AD (AAD) token using the Service Principal credentials (client_id, client_secret, and tenant_id). This AAD token is used for authenticating API requests. Commented Sep 27, 2024 at 7:12
  • Hi Jayashankar, 1. Created an Azure AD (AAD) token using the Service Principal credentials . This AAD token is used for authenticating API requests. 2. using that AAD token I created a databricks PAT token valid for 3 months. The AAD token is passed in the Authorization header to authenticate the request to Databricks. 3. Once I have PAT, I used it in python code python headers = {"Authorization": f"Bearer {secret_token}"} response = requests.get(api_url, headers=headers) data = response.json() Let me know if you need any further details Commented Sep 27, 2024 at 7:19
  • did you follow this to generate token docs.databricks.com/en/dev-tools/auth/… Commented Sep 27, 2024 at 7:44
  • Yes, I follow exactly the same steps. Commented Sep 28, 2024 at 18:28