Skip to content

Enabled asynchronous token refreshes by default #1208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025
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
1 change: 1 addition & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions config/experimental/auth/dataplane/dataplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
),
}
}
Expand Down Expand Up @@ -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)

Expand Down
Loading