We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc7c236 commit 50e12b0Copy full SHA for 50e12b0
NEXT_CHANGELOG.md
@@ -6,6 +6,8 @@
6
7
### Bug Fixes
8
9
+ * Ensure that refresh tokens are returned when using the `external-browser` credentials strategy.
10
+
11
### Documentation
12
13
### Internal Changes
databricks/sdk/oauth.py
@@ -629,7 +629,11 @@ def __init__(
629
):
630
631
if not scopes:
632
- scopes = ["all-apis"]
+ # all-apis ensures that the returned OAuth token can be used with all APIs, aside
633
+ # from direct-to-dataplane APIs.
634
+ # offline_access ensures that the response from the Authorization server includes
635
+ # a refresh token.
636
+ scopes = ["all-apis", "offline_access"]
637
638
self.redirect_url = redirect_url
639
self._client_id = client_id
0 commit comments