Skip to content

Conversation

@Tejas-Kochar
Copy link

Summary

  • add option for disabling refresh token to be used in U2M.
  • sort scopes when config is initialized.
  • add getters for scopes that add default scope "all-apis" if scopes is empty.

How is this tested?

  • Unit tests for loading scopes from a test .databrickscfg config file
  • Unit tests ensuring disable_oauth_refresh_token is set when environment variable DATABRICKS_DISABLE_OAUTH_REFRESH_TOKEN is set.

NO_CHANGELOG=true

@Tejas-Kochar Tejas-Kochar self-assigned this Dec 23, 2025
@Tejas-Kochar Tejas-Kochar force-pushed the custom-scopes branch 2 times, most recently from b50398b to 4fb6bd0 Compare December 25, 2025 14:26
@github-actions
Copy link

github-actions bot commented Jan 8, 2026

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-py

Inputs:

  • PR number: 1166
  • Commit SHA: 73d24194f88dace2bc027ba2c8daf405725afe10

Checks will be approved automatically on success.

@Tejas-Kochar Tejas-Kochar deployed to test-trigger-is January 8, 2026 14:44 — with GitHub Actions Active
Comment on lines +81 to +84
("sql, offline_access", None),
("sql, offline_access", '{"type": "databricks_resource"}'),
("sql", None),
("sql offline_access all-apis", None),
("sql, offline_access, all-apis", None),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably a breaking change, to avoid making it we will have to also allow for whitespace as a delimiter as runtime oauth already uses that format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants