[Bug] Device-code sign-in fails with post_request_failed: invalid_client in CLI 0.27.0–0.29.0
@jiankai82 ci sta già lavorando.
Dal 20/10/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 15/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Attiva
- Stack tecnologico
- node.js, typescript
- Ambito
- authentication, cli
Direzione di ricerca
The payload names no source files. The entry points are the ms auth login --device-code command and the ms auth status check, plus the MS_CLI_USE_MMA_APP_ID environment variable and the PowerAppsCodeAppCLI client ID. Reproducing needs a Windows machine with Node.js 24.19.0 and an isolated MS_CLI_CONFIG_DIR. The issue asks whether this client ID is supported for device-code sign-in, so a maintainer decision comes before any code change. Done means the token request succeeds or the failure reports its AADSTS suberror and correlation ID.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
On Windows with Node.js 24.19.0, ms auth login --device-code fails with post_request_failed: invalid_client. The device sign-in page confirms sign-in to PowerAppsCodeAppCLI, but the CLI does not obtain a token and ms auth status remains Not signed in.
The issue reproduces with CLI versions 0.27.0, 0.28.0, and 0.29.0. For the 0.27.0 test, I used pnpm dlx with an isolated MS_CLI_CONFIG_DIR. MS_CLI_USE_MMA_APP_ID=1 was set for the attempts.
Steps to reproduce
- Run
ms auth login --device-code. - Complete sign-in for
PowerAppsCodeAppCLIin the browser. - Observe that the CLI returns
post_request_failed: invalid_client. - Run
ms auth status; it reportsNot signed in.
Expected behavior
The CLI obtains a token after device sign-in and reports an authenticated session.
Actual behavior
Token acquisition fails with post_request_failed: invalid_client. The CLI output does not include an AADSTS suberror or correlation ID.
Could you confirm whether this client ID and MS_CLI_USE_MMA_APP_ID=1 are supported for device-code sign-in, and advise how to diagnose this failure?
- Lingua principale
- TypeScript
- Stelle
- 27
- Fork
- 8
- Merge medio
- 6h 59m
- PR unite (30g)
- 5
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 microsoft/managed-apps
-
[Bug] SQL Server (`shared_sql`) action operations are always routed to `/procedures` with an unresolved path template, so Insert row (V2), Execute a SQL query (V2), Get tables (V2) etc. all return 404Forse già presa @tonystevenj l’ha presa 1 giorno fa. Apertabug
microsoft/managed-apps#45 · 1 assegnatario ·
-
[Bug] Table-mode create/update sends a JSON body without a Content-Type header, so the SQL Server connector rejects inserts with 415 "media type 'text/plain' is not supportedForse già presa @tonystevenj l’ha presa 1 giorno fa. Apertabug
microsoft/managed-apps#44 · 1 assegnatario ·
-
[Bug] Cannot block Tenant wide CLI pathForse già presa @ergonza93 l’ha presa 1 giorno fa. Apertabug
microsoft/managed-apps#43 · 1 commento · 1 assegnatario ·
-
[Bug] `ms app clone` fails on macOSForse già presa @sokhenglim1 l’ha presa oggi. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
microsoft/managed-apps#42 · 1 commento · 1 assegnatario ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
microsoft/managed-apps#31 · 1 assegnatario ·
Tutte le issue di microsoft/managed-apps
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Renaming a projectAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
equinor/prisma-decision-web#927 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
bigbluebutton/bigbluebutton#26166 ·
I maintainer di solito rispondono entro 1 giorno