Skip to content

Commit 48954fc

Browse files
authored
Merge pull request #515 from AzureAD/enable-msalruntime-for-ssh-cert
Use broker for SSH Cert feature
2 parents a08dd9e + 20667dc commit 48954fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

msal/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ def _acquire_token_silent_from_cache_and_possibly_refresh_it(
13751375
if account and account.get("authority_type") == _AUTHORITY_TYPE_CLOUDSHELL:
13761376
return self._acquire_token_by_cloud_shell(scopes, data=data)
13771377

1378-
if self._enable_broker and account is not None and data.get("token_type") != "ssh-cert":
1378+
if self._enable_broker and account is not None:
13791379
from .broker import _acquire_token_silently
13801380
response = _acquire_token_silently(
13811381
"https://{}/{}".format(self.authority.instance, self.authority.tenant),
@@ -1799,7 +1799,7 @@ def acquire_token_interactive(
17991799
return self._acquire_token_by_cloud_shell(scopes, data=data)
18001800
claims = _merge_claims_challenge_and_capabilities(
18011801
self._client_capabilities, claims_challenge)
1802-
if self._enable_broker and data.get("token_type") != "ssh-cert":
1802+
if self._enable_broker:
18031803
if parent_window_handle is None:
18041804
raise ValueError(
18051805
"parent_window_handle is required when you opted into using broker. "

0 commit comments

Comments
 (0)