Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#39 2 comentarios 0 reacciones 1 asignado Ver en GitHub

@jiankai82 ya está trabajando en esto.

Desde el 20/10/2026.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
15/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
node.js, typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
TypeScript
Estrellas
27
Forks
8
Merge medio
6 h 59 min
PR fusionados (30 d)
5

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/managed-apps

Todos los issues de microsoft/managed-apps

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.