Skip to content

Commit 4f292e0

Browse files
committed
Update Credential Provider Lints
Signed-off-by: aravind-segu <[email protected]>
1 parent 4797295 commit 4f292e0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

databricks/sdk/credentials_provider.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,12 @@ def github_oidc_azure(cfg: 'Config') -> Optional[CredentialsProvider]:
314314
# detect Azure AD Tenant ID if it's not specified directly
315315
token_endpoint = cfg.oidc_endpoints.token_endpoint
316316
cfg.azure_tenant_id = token_endpoint.replace(aad_endpoint, '').split('/')[0]
317-
inner = ClientCredentials(client_id=cfg.azure_client_id,
318-
client_secret="", # we have no (rotatable) secrets in OIDC flow
319-
token_url=f"{aad_endpoint}{cfg.azure_tenant_id}/oauth2/token",
320-
endpoint_params=params,
321-
use_params=True)
317+
inner = ClientCredentials(
318+
client_id=cfg.azure_client_id,
319+
client_secret="", # we have no (rotatable) secrets in OIDC flow
320+
token_url=f"{aad_endpoint}{cfg.azure_tenant_id}/oauth2/token",
321+
endpoint_params=params,
322+
use_params=True)
322323

323324
def refreshed_headers() -> Dict[str, str]:
324325
token = inner.token()

0 commit comments

Comments
 (0)