Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#810 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
28/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
authentication

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
971
Fork
223
Merge trung bình
13 giờ 48 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AzureAD/microsoft-authentication-library-for-python

Tất cả issue của AzureAD/microsoft-authentication-library-for-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.