Open peter-bertok opened 3 months ago
Thanks for reporting :) @msJinLei we may want to (a) check if our utlity of getting the handle of the parent window is up to date with MSAL's recommeded implementation and (b) escalate to MSAL team.
@isra-fel No update for document from MSAL team https://learn.microsoft.com/en-us/entra/msal/dotnet/acquiring-tokens/desktop-mobile/wam
@peter-bertok Can you see the popup windows? Or could you provide a screen snapshot for the case you encountered?
When I run the Connect-AzAccount command, the popup window is not visible.
It appears behind the VS Code window, as a "pop behind". If I carefully minimise the VS Code Window or change its size and drag it around, I can click on the login window. Otherwise it is invisible and cannot be easily selected.
On Tue, 28 May 2024 at 13:56, Jin Lei @.***> wrote:
@peter-bertok https://github.com/peter-bertok Can you see the popup windows? Or could you provide a screen snapshot for the case you encountered?
— Reply to this email directly, view it on GitHub https://github.com/Azure/azure-powershell/issues/24989#issuecomment-2134302471, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSLGW23BGAD7K3YOP2IIRLZEP6AVAVCNFSM6AAAAABIKLNR4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGMYDENBXGE . You are receiving this because you were mentioned.Message ID: @.***>
When I run the Connect-AzAccount command, the popup window is not visible. It appears behind the VS Code window, as a "pop behind". If I carefully minimise the VS Code Window or change its size and drag it around, I can click on the login window. Otherwise it is invisible and cannot be easily selected. … On Tue, 28 May 2024 at 13:56, Jin Lei @.> wrote: @peter-bertok https://github.com/peter-bertok Can you see the popup windows? Or could you provide a screen snapshot for the case you encountered? — Reply to this email directly, view it on GitHub <#24989 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSLGW23BGAD7K3YOP2IIRLZEP6AVAVCNFSM6AAAAABIKLNR4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGMYDENBXGE . You are receiving this because you were mentioned.Message ID: @.>
Got it. The popup windows is not easy to find.
Reported to MSAL team
@msJinLei in my case there is no pop-behind whatsoever, following the same instructions noted here.
@msJinLei in my case there is no pop-behind whatsoever, following the same instructions noted here.
@JustinGrote Could you run Connect-AzAccount -Debug
and paste and debug log here and remember to remove the private information
@msJinLei in my case there is no pop-behind whatsoever, following the same instructions noted here.
@JustinGrote Could you run Connect-AzAccount -Debug
and paste and debug log here and remember to remove the private information
Description
When using "Connect-AzAccount" it hangs in the terminal with the message "Please select the account you want to login with."
I can't actually select a subscription however, it just hangs at that point with a "pop-behind" login prompt. That is, the Windows authentication UI appears under the Visual Studio Code window.
PS: The exact same behavior is observed with Out-GridView, or any other PowerShell GUI element launched from the VS Code console.
Issue script & Debug output
Environment data
Module versions
Error output