Skip to content

Commit 790bc78

Browse files
committed
Update
1 parent 3ca5fcf commit 790bc78

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

msal/application.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ def _preferred_browser():
164164
pass # We may still proceed
165165
return None
166166

167+
def _is_ssh_cert_or_pop_request(token_type, auth_scheme) -> bool:
168+
return token_type == "ssh-cert" or token_type == "pop" or isinstance(auth_scheme, msal.auth_scheme.PopAuthScheme)
167169

168170
class _ClientWithCcsRoutingInfo(Client):
169171

@@ -1510,9 +1512,6 @@ def _acquire_token_silent_with_error(
15101512
}.get(final_result["suberror"], final_result["suberror"])
15111513
return final_result
15121514

1513-
def _is_ssh_cert_or_pop_request(token_type, auth_scheme) -> bool:
1514-
return token_type == "ssh-cert" or token_type == "pop" or isinstance(auth_scheme, msal.auth_scheme.PopAuthScheme)
1515-
15161515
def _acquire_token_silent_from_cache_and_possibly_refresh_it(
15171516
self,
15181517
scopes, # type: List[str]

0 commit comments

Comments
 (0)