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

[Bug] Device-code sign-in fails with post_request_failed: invalid_client in CLI 0.27.0–0.29.0

Aperta
#39 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@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

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

bug
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
  1. Run ms auth login --device-code.
  2. Complete sign-in for PowerAppsCodeAppCLI in the browser.
  3. Observe that the CLI returns post_request_failed: invalid_client.
  4. Run ms auth status; it reports Not 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

  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 microsoft/managed-apps

Tutte le issue di microsoft/managed-apps

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.