Connect-AzAccount interactive login fails on macOS (Apple Silicon): "Interactive requests with mac broker enabled must be executed on the main thread"
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- csharp, powershell
- Ambito
- authentication, cli
Direzione di ricerca
Inizia riproducendo Connect-AzAccount su macOS Apple Silicon con Az.Accounts 5.5.1, quindi confrontalo con 5.2.0 e con il workaround -UseDeviceAuthentication. Traccia il flusso interattivo del browser e il relativo percorso MSAL mac-broker; il lavoro è completato quando il comando standard apre un browser senza l’errore del thread principale.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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).
- Lingua principale
- C#
- Stelle
- 4.8k
- Fork
- 4.3k
- Merge medio
- 2g 18h
- PR unite (30g)
- 91
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure/azure-powershell
-
[Feature]:Apertacustomer-reported feature-request needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Azure/azure-powershell#30135 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
customer-reported feature-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Azure/azure-powershell#30100 ·
I maintainer di solito rispondono entro 1 giorno
-
Get-AzCognitiveServicesModelCapacity does not support querying models with the Format "Mistral AI"Apertabug customer-reported
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Azure/azure-powershell#29632 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug customer-reported Request X Engineering Agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Azure/azure-powershell#29615 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
AzApplicationGateway: Missing VerifyClientAuthMode in Az.Network PowerShell model causes unintended config changesForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertabug customer-reported
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Azure/azure-powershell#29540 · 1 commento · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Azure/azure-powershell
Issue simili
-
bug emitter:client:csharp
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
microsoft/typespec#12572 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
needs-area-label
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
AWS Lambda: KeyNotFoundException drops HTTP-triggered transactions when allowAllHeaders is disabledApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
newrelic/newrelic-dotnet-agent#3949 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area-networking
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
dotnet/aspnetcore#70545 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
I maintainer di solito rispondono entro 1 giorno