Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Fix location
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges committed Nov 14, 2022
1 parent f3a167b commit c2f553c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cli/onefuzz/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ def do_login(self, scopes: List[str]) -> Any:
authority=self.config.authority,
token_cache=self.token_cache,
allow_broker=True,
parent_window_handle=msal.PublicClientApplication.CONSOLE_WINDOW_HANDLE,
)

access_token = None
Expand All @@ -252,7 +251,10 @@ def do_login(self, scopes: List[str]) -> Any:
for scope in scopes:
LOGGER.info("Attempting interactive device login")
try:
access_token = self.app.acquire_token_interactive(scopes=[scope])
access_token = self.app.acquire_token_interactive(
scopes=[scope],
parent_window_handle=msal.PublicClientApplication.CONSOLE_WINDOW_HANDLE,
)
check_msal_error(access_token, ["access_token"])
except KeyboardInterrupt:
result = input(
Expand Down

0 comments on commit c2f553c

Please sign in to comment.