From e20e08d1fac0bc9c719c0cbb7bda7c563b0557cc Mon Sep 17 00:00:00 2001 From: Hector Castejon Diaz Date: Wed, 16 Apr 2025 15:29:37 +0200 Subject: [PATCH] Enabled asynchronous token refreshes by default --- NEXT_CHANGELOG.md | 1 + config/experimental/auth/dataplane/dataplane.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index bcf084760..8c772f608 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -3,6 +3,7 @@ ## Release v0.64.0 ### New Features and Improvements +* Enabled asynchronous token refreshes by default ([#1208](https://github.com/databricks/databricks-sdk-go/pull/1208)). ### Bug Fixes diff --git a/config/experimental/auth/dataplane/dataplane.go b/config/experimental/auth/dataplane/dataplane.go index e9b943192..be8348de6 100644 --- a/config/experimental/auth/dataplane/dataplane.go +++ b/config/experimental/auth/dataplane/dataplane.go @@ -28,7 +28,6 @@ func NewEndpointTokenSource(c OAuthClient, cpts auth.TokenSource) *dataPlaneToke client: c, cpts: auth.NewCachedTokenSource( cpts, - auth.WithAsyncRefresh(false), // TODO: Enable async refreshes once the feature is stable. ), } } @@ -65,7 +64,6 @@ func (dpts *dataPlaneTokenSource) Token(ctx context.Context, endpoint string, au cpts: dpts.cpts, authDetails: authDetails, }, - auth.WithAsyncRefresh(false), // TODO: Enable async refresh once the feature is stable. ) dpts.sources.Store(key, ts)