Skip to content

[Bug] Parent window handle detection code for console apps no longer works with Windows Terminal v1.22+ #4928

@GruberMarkus

Description

@GruberMarkus

Library version used

not relevant for this issue

.NET version

not relevant for this issue

Scenario

PublicClient - desktop app

Is this a new or an existing app?

This is a new app or experiment

Issue description and reproduction steps

The code from https://learn.microsoft.com/en-us/entra/msal/dotnet/acquiring-tokens/desktop-mobile/wam#parent-window-handles no longer works correctly with Windows Termin v1.22+, as the handle points to a hidden pseudo console.

Relevant code snippets

No response

Expected behavior

Please update the sample code so that also works with Windows Termin v1.22+ and hidden pseudo consoles.

Identity provider

Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)

Regression

No response

Solution and workarounds

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions