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] databricks sdk jobs. how to create dependency task /lineage using python HOT 2
- [ISSUE] databricks sdk depends_on =['task1'] getting an error attributeerror: str has no attribute 'as_dict' HOT 4
- Can not find LEGACY_SINGLE_USER_STANDARD mode in the sdk HOT 3
- [ISSUE] DeprecationWarning: invalid escape sequence '\.' HOT 1
- [ISSUE] ObjectType.MLFLOW_EXPERIMENT missing in workspace.list results
- [ISSUE] DATABRICK SDK , how to pass output of one notebook to another notebook as input HOT 1
- [ISSUE] notebook native auth failing on container clusters
- [ISSUE] workspace import fails if simplejson is not installed
- [ISSUE] Can't get run result for notebook runs longer than 20 minutes
- [ISSUE] Creating Personal Cluster failed "Validation failed for data_security_mode" HOT 3
- [ISSUE] type_precision and type_scale in columns info are not correct HOT 4
- [ISSUE] Cannot use AccountClient commands after creating a new WorkspaceClient HOT 2
- [ISSUE] serving_endpoints.patch bug
- [ISSUE] sql query list method not returning the query folder information
- Endless loop in query history implementation HOT 1
- HTTP_PROXY proxy use HOT 1
- [FEATURE] Upload folder support in files.py
- cp should allow you to set the overwrite parameter
- [ISSUE] Misleading and wrong type hinting for boolean parameters in jobs.list and jobs.list_runs HOT 1
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.