databricks-sdk 0.46.0__py3-none-any.whl → 0.47.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of databricks-sdk might be problematic. Click here for more details.

databricks/sdk/oauth.py CHANGED
@@ -629,7 +629,11 @@ class OAuthClient:
629
629
  ):
630
630
 
631
631
  if not scopes:
632
- scopes = ["all-apis"]
632
+ # 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"]
633
637
 
634
638
  self.redirect_url = redirect_url
635
639
  self._client_id = client_id
@@ -654,8 +658,6 @@ class OAuthClient:
654
658
  return lambda: {}
655
659
 
656
660
  config = Config(host=host, credentials_strategy=noop_credentials)
657
- if not scopes:
658
- scopes = ["all-apis"]
659
661
  oidc = config.oidc_endpoints
660
662
  if not oidc:
661
663
  raise ValueError(f"{host} does not support OAuth")
@@ -9471,6 +9471,8 @@ class UpdateWorkspaceBindingsParameters:
9471
9471
 
9472
9472
  @dataclass
9473
9473
  class ValidateCredentialRequest:
9474
+ """Next ID: 17"""
9475
+
9474
9476
  aws_iam_role: Optional[AwsIamRole] = None
9475
9477
  """The AWS IAM role configuration"""
9476
9478