You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PowerShell console in Visual Studio Code is a case to reproduce the issue.
Relevant code snippets
enumGetAncestorFlags{GetParent=1,GetRoot=2,/// <summary>/// Retrieves the owned root window by walking the chain of parent and owner windows returned by GetParent./// </summary>GetRootOwner=3}/// <summary>/// Retrieves the handle to the ancestor of the specified window./// </summary>/// <param name="hwnd">A handle to the window whose ancestor is to be retrieved./// If this parameter is the desktop window, the function returns NULL. </param>/// <param name="flags">The ancestor to be retrieved.</param>/// <returns>The return value is the handle to the ancestor window.</returns>[DllImport("user32.dll", ExactSpelling =true)]staticextern IntPtr GetAncestor(IntPtrhwnd,GetAncestorFlagsflags);[DllImport("kernel32.dll")]staticextern IntPtr GetConsoleWindow();// This is your window handle!public IntPtr GetConsoleOrTerminalWindow(){IntPtrconsoleHandle= GetConsoleWindow();IntPtrhandle= GetAncestor(consoleHandle, GetAncestorFlags.GetRootOwner );returnhandle;}
Expected behavior
WAM windows always popup on the front
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
No response
Solution and workarounds
The customers should look for the WAM popup very hard
The text was updated successfully, but these errors were encountered:
msJinLei
changed the title
[Bug] The WAM Popup Windows are Sometimes on the Front
[Bug] The WAM Popup Windows Are Sometimes Not on the Front
Aug 12, 2024
bgavrilMS
changed the title
[Bug] The WAM Popup Windows Are Sometimes Not on the Front
[Bug] The WAM Popup Windows Are Sometimes Not on the top
Aug 12, 2024
msJinLei
changed the title
[Bug] The WAM Popup Windows Are Sometimes Not on the top
[Bug] The WAM Popup Windows Are Sometimes Not on the Top When Launch from VSCode
Sep 6, 2024
Library version used
N/A
.NET version
.net standard 2.0
Scenario
PublicClient - desktop app
Is this a new or an existing app?
The app is in production, and I have upgraded to a new version of MSAL
Issue description and reproduction steps
The customer reports that WAM window sometimes popup behind and they cannot see it initially.
Originally posted by @JeremyTBradshaw in Azure/azure-powershell#25120 (comment)
Originally posted by @peter-bertok in Azure/azure-powershell#24989
PowerShell console in Visual Studio Code is a case to reproduce the issue.
Relevant code snippets
Expected behavior
WAM windows always popup on the front
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
No response
Solution and workarounds
The customers should look for the WAM popup very hard
The text was updated successfully, but these errors were encountered: