You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(kernel): don't handle azure-oauth U2M yet; reject it (PECOBLR-4120)
Azure AD U2M can't work through the kernel today: the kernel resolves
OAuth endpoints only from the workspace-native OIDC config and has no
Azure AD path, so the Thrift azure-oauth flow (AAD token endpoint +
/user_impersonation scope) cannot be reproduced. Rather than forward an
azure bundle that authenticates against the wrong endpoints, reject
auth_type='azure-oauth' up front with a clear NotSupportedError pointing
at the Thrift backend. The kernel U2M path now handles databricks-oauth
only. Azure support is tracked by PECOBLR-4120.
Also fixes the stale scope tests the prior review left red: scopes are
hardcoded to PYSQL_OAUTH_SCOPES for Thrift parity (not caller-
overridable), and the tests now assert that.
Co-authored-by: Isaac
Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Release History
2
2
3
3
# Unreleased
4
-
- Kernel backend (`use_kernel=True`): OAuth U2M now forwards the connector's full OAuth-app bundle (`client_id` + scopes + redirect port) into the kernel, so a bare U2M connection authenticates as `databricks-sql-python`with `sql offline_access`— parity with the Thrift path — instead of inheriting the kernel's own `databricks-sql-connector` default. Caller-supplied `oauth_client_id`/ `oauth_scopes` /`oauth_redirect_port`are still honored (PECOBLR-4040)
4
+
- Kernel backend (`use_kernel=True`): OAuth U2M with `auth_type="databricks-oauth"`now forwards the connector's `databricks-sql-python` OAuth-app bundle (`client_id` + `sql offline_access`scopes + redirect port) into the kernel, so a bare U2M connection authenticates as `databricks-sql-python` — parity with the Thrift path — instead of inheriting the kernel's own `databricks-sql-connector` default. A caller-supplied `oauth_client_id`(with its coupled`oauth_redirect_port`) is honored; scopes are fixed to match the Thrift path. `auth_type="azure-oauth"` (Azure AD) is not yet supported on the kernel path and raises `NotSupportedError` — use the Thrift backend for it (PECOBLR-4040; Azure tracked by PECOBLR-4120)
5
5
6
6
# 4.4.0 (2026-07-22)
7
7
- Raised the minimum supported Python version to 3.10, dropping the end-of-life 3.8/3.9, to update the lockfile and clear CVE-flagged dependencies in the repo (databricks/databricks-sql-python#798)
0 commit comments