Comments (2)
Does the service principal itself work? If you take your config and do
w = WorkspaceClient(config)
w.current_user.me()
does it succeed?
from databricks-sdk-py.
I'm not sure if this is related or not, but it might help others that are facing a similar issue.
We started getting the same error (invalid_client: Client authentication failed
) a few days ago, nothing has changed on our code base/infrastructure and it was working perfectly before.
For context, we're using Azure Databricks and connecting via service principal. We've been using the client id and secret from Microsoft Entra ID.
After digging a little bit on the stack trace, we confirmed the issue was coming from the call to get an access token, which should be something like this, according to the docs:
curl -X POST \
<per-workspace-url>/oidc/v1/token \
-d "grant_type=client_credentials" \
-d "scope=all-apis" \
-u "<service-principal-id>:<oauth-secret>"
We've then tried the same request using the same credentials from Microsoft Entra ID and confirmed the error was coming from this call.
Reading a bit more the docs we saw on Step 6: Create an Azure Databricks OAuth secret for the service principal that we should be using a Databricks OAuth Secret (apparently something new, since we've been using only the service principal credentials from Microsoft Entra ID). So we have it a try... I created a new token, sent it on the same request as before and it worked fine.
We believe this was introduced by this change, however we're not sure if this was an intended (and miscommunicated) breaking change or a regression bug, because it did work fine before 🤷🏼
from databricks-sdk-py.
Related Issues (20)
- [ISSUE] dbutils.fs.ls has different behaviour than Databricks clusters HOT 2
- [ISSUE] Transfer object ownership missing objectId
- [ISSUE] DOCS - Example Usages of `databricks.sdk.service.iam.AccountGroupsAPI` call WorkspaceClient.
- [FEATURE] Support for Databricks Asset Bundles
- [FEATURE] Add asyncio compatability for files API
- [ISSUE] not able to list the pipelines using the latest available databricks-sdk 0.26.0 HOT 2
- [ISSUE] Missing `BROWSE` Privilege on a `Catalog` object
- [FEATURE] Upload whl file
- [ISSUE] `Internal Server Error` when creating an alert with a parent folder HOT 8
- [ISSUE] `catalog.ListConnectionsRequest` does not exist
- [ISSUE] Edge cases for cloud type detection
- [ISSUE] serving_endpoints.query raises BadRequest error when using azure-client-secret auth
- [ISSUE] Missing `CREATE_FOREIGN_SCHEMA` and `CREATE_FOREIGN_TABLE` privileges
- [ISSUE] "temporarily unavailable" errors are not retried
- [ISSUE] InvalidParameterValue: Path must be absolute: \mnt
- [ISSUE] Incorrectly set config.is_aws flag when host has trailing "/"
- [FEATURE] add serving_endpoints.create_or_update[_and_wait] functions
- [ISSUE] w.dbutils.fs.ls fails when using databricks SDK inside another workspace HOT 1
- [FEATURE] Add totalResults to List() HOT 1
- [ISSUE] How to troubleshoot when a job creation failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from databricks-sdk-py.