Connect-AzAccount interactive login fails on macOS (Apple Silicon): "Interactive requests with mac broker enabled must be executed on the main thread"
Maintainer thường phản hồi trong vòng 1 ngày
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
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- csharp, powershell
- Lĩnh vực
- authentication, cli
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện Connect-AzAccount trên macOS Apple Silicon với Az.Accounts 5.5.1, sau đó so sánh với 5.2.0 và workaround -UseDeviceAuthentication. Theo dõi luồng trình duyệt tương tác và đường dẫn MSAL mac-broker của nó; hoàn tất khi lệnh tiêu chuẩn mở trình duyệt mà không gặp lỗi luồng chính.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
Connect-AzAccount (interactive browser flow) fails on macOS with the following error, starting in Az.Accounts 5.5.1:
WARNING: Unable to acquire token for tenant 'organizations' with error
'InteractiveBrowserCredential authentication failed: Interactive requests
with mac broker enabled must be executed on the main thread on macOS.'
Connect-AzAccount: InteractiveBrowserCredential authentication failed:
Interactive requests with mac broker enabled must be executed on the main
thread on macOS.
Environment
- Az.Accounts version (broken): 5.5.1
- Az.Accounts version (last known good): 5.2.0
- OS: macOS (Apple Silicon)
- PowerShell: 7.6.4 (pwsh)
- Shell/terminal: zsh, running inside Ghostty
Steps to reproduce
- Install Az.Accounts 5.5.1 (via
Install-Module -Name Az -Repository PSGallery) - Run
Connect-AzAccount - Observe the error above instead of a browser window opening
Expected behavior
Interactive browser login opens as it did on 5.2.0.
Workaround found
Downgrading fixes it:
Uninstall-Module Az.Accounts -AllVersions -Force
Install-Module -Name Az.Accounts -RequiredVersion 5.2.0 -Repository PSGallery -Force -AllowClobber
Connect-AzAccount -UseDeviceAuthentication also works around it without downgrading, but the standard interactive flow should not require this.
Additional notes
This appears to be caused by the MSAL mac-broker interactive auth path requiring main-thread execution, which isn't guaranteed when pwsh is run from a non-default terminal host.
Duplicate of #29940 (filed from a different account by mistake; leaving that one open too so a maintainer can dedupe).
- Ngôn ngữ chính
- C#
- Star
- 4.8k
- Fork
- 4.3k
- Merge trung bình
- 2 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 91
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure/azure-powershell
-
[Feature]:Đang mởcustomer-reported feature-request needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Azure/azure-powershell#30135 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
customer-reported feature-request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Azure/azure-powershell#30100 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Get-AzCognitiveServicesModelCapacity does not support querying models with the Format "Mistral AI"Đang mởbug customer-reported
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Azure/azure-powershell#29632 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug customer-reported Request X Engineering Agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Azure/azure-powershell#29615 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
AzApplicationGateway: Missing VerifyClientAuthMode in Az.Network PowerShell model causes unintended config changesCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug customer-reported
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Azure/azure-powershell#29540 · 1 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Azure/azure-powershell
Issue tương tự
-
bug emitter:client:csharp
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
microsoft/typespec#12572 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-area-label
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
AWS Lambda: KeyNotFoundException drops HTTP-triggered transactions when allowAllHeaders is disabledĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
newrelic/newrelic-dotnet-agent#3949 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area-networking
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
dotnet/aspnetcore#70545 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
Maintainer thường phản hồi trong vòng 1 ngày