Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## dbt-databricks 1.6.x (Release TBD)

### Fixes

- Fixed an issue with AWS OAuth M2M flow ([#445](https://github.com/databricks/dbt-databricks/pull/445))

## dbt-databricks 1.6.3 (September 8, 2023)

### Fixes
Expand Down
4 changes: 2 additions & 2 deletions dbt/adapters/databricks/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ def noop_credentials(_: Any): # type: ignore

config = Config(host=host, credentials_provider=noop_credentials)
oidc = config.oidc_endpoints
scopes = ["offline_access", "all-apis"]
scopes = ["all-apis"]
if not oidc:
raise ValueError(f"{host} does not support OAuth")
if config.is_azure:
# Azure AD only supports full access to Azure Databricks.
scopes = [f"{config.effective_azure_login_app_id}/.default", "offline_access"]
scopes = [f"{config.effective_azure_login_app_id}/.default"]
self._token_source = ClientCredentials(
client_id=client_id,
client_secret=client_secret,
Expand Down