You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix config.oauth_token() to properly rely on token caching. (#1020)
## What changes are proposed in this pull request?
This PR fixes `config.oauth_token()` to actually use the caching
mechanism in the credentials provider (e.g. async refresh). It also
improve the error message in case the credentials provider is not an
OAuth credentials provider.
## How is this tested?
Unit + Integration tests.
Copy file name to clipboardExpand all lines: NEXT_CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@
6
6
7
7
### Bug Fixes
8
8
9
+
* Fix `Config.oauth_token()` to avoid re-creating a new `CredentialsProvider` at each call. This fix indirectly makes `oauth_token()` benefit from the internal caching mechanism of some providers.
0 commit comments