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.
WorkspaceClient
DATABRICKS_ACCOUNT_ID
1 parent 9dc991c commit b82fa01Copy full SHA for b82fa01
databricks/sdk/core.py
@@ -640,7 +640,7 @@ def oidc_endpoints(self) -> Optional[OidcEndpoints]:
640
return None
641
return OidcEndpoints(authorization_endpoint=real_auth_url,
642
token_endpoint=real_auth_url.replace('/authorize', '/token'))
643
- if self.account_id:
+ if self.is_account_client and self.account_id:
644
prefix = f'{self.host}/oidc/accounts/{self.account_id}'
645
return OidcEndpoints(authorization_endpoint=f'{prefix}/v1/authorize',
646
token_endpoint=f'{prefix}/v1/token')
0 commit comments