Skip to content

Commit 1a46e86

Browse files
update changelog for scopes
1 parent fc4e64f commit 1a46e86

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

NEXT_CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
### Breaking Changes
66

77
### New Features and Improvements
8+
* Add support for fine-grained scopes in OAuth auth types: M2M and OIDC.
9+
* Partial support for fine-grained scopes in U2M (`databricks-cli`) auth type. Last token minted is used by all profiles sharing the same host, regardless of scopes set in the profile.
810

911
### Bug Fixes
1012

@@ -18,4 +20,4 @@
1820
* Add `SparseCheckout` field for [jobs.GitSource](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#GitSource).
1921
* Add `DisableAutoOptimization`, `MaxRetries`, `MinRetryIntervalMillis` and `RetryOnTimeout` fields for [jobs.RunTask](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#RunTask).
2022
* Add `DisableAutoOptimization`, `MaxRetries`, `MinRetryIntervalMillis` and `RetryOnTimeout` fields for [jobs.SubmitTask](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#SubmitTask).
21-
* Add `EdgegridAkamai` enum value for [catalog.CredentialType](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/catalog#CredentialType).
23+
* Add `EdgegridAkamai` enum value for [catalog.CredentialType](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/catalog#CredentialType).

config/config.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,16 @@ type Config struct {
141141
// Scopes is a list of OAuth scopes to request when authenticating.
142142
//
143143
// WARNING:
144-
// - This feature is still in development and may not work as expected
145-
// - This feature is EXPERIMENTAL and may change or be removed without notice.
146-
// - Do NOT use this feature in production environments.
144+
// - Support in the `databricks-cli` auth type is limited as the U2M token
145+
// cache currently does NOT support differentiated caching for scopes.
146+
// There might be unexpected behaviour if multiple profiles have the same host.
147147
//
148148
// Notes:
149149
// - If Scopes is nil or empty, the default ["all-apis"] scope will be used for backward compatibility.
150150
// - For U2M authentication, the "offline_access" scope will automatically be added to obtain a refresh token
151151
// unless you set DisableOAuthRefreshToken to true.
152152
// - You cannot set Scopes via environment variables.
153153
// - The scopes list will be sorted in-place during configuration resolution.
154-
// - The U2M token cache currently does NOT support differentiated caching for scopes.
155154
Scopes []string `name:"scopes" auth:"-"`
156155

157156
// DisableOAuthRefreshToken controls whether a refresh token should be requested

0 commit comments

Comments
 (0)