Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug] WSL broker in admin terminal fails: Unexpected winrt exception while launching accounts control from UI thread: '(pii)'.

Aperta
#810 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
28/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

Start by tracing acquire_token_interactive with enable_broker_on_wsl=True in an elevated Windows Terminal, then inspect the WSL broker path and how it launches the accounts control from the UI thread. Reproduce with the reported WSL and Windows versions and check why the exception still contains (pii) with enable_pii_log enabled. Done means interactive token acquisition succeeds in this setup; the issue names no specific files or tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs attention public-client untriaged

Describe the bug
WSL broker in admin terminal fails: Unexpected winrt exception while launching accounts control from UI thread: '(pii)'.

To Reproduce
WSL version:

> wsl --version
WSL version: 2.4.13.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5716
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26100.3775

Launch Windows Terminal as administrator, in WSL with enable_broker_on_wsl=True, acquire_token_interactive fails with:

Unexpected winrt exception while launching accounts control from UI thread: '(pii)'. Status: Response_Status.Status_Unexpected, Error code: -2147220999, Tag: 528315209

enable_pii_log (https://github.com/AzureAD/microsoft-authentication-library-for-python/pull/590) is already enabled (https://github.com/Azure/azure-cli/pull/28954), but the error message still shows (pii).

Expected behavior
acquire_token_interactive should work as expected.

What you see instead
acquire_token_interactive fails.

The MSAL Python version you are using
Latest dev branch.

Additional context
Add any other context about the problem here.

Lingua principale
Python
Stelle
971
Fork
223
Merge medio
13h 48m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AzureAD/microsoft-authentication-library-for-python

Tutte le issue di AzureAD/microsoft-authentication-library-for-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.