Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#39 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@jiankai82 已经在做这个了。

开始于 2026年10月20日。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
15/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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?

主要语言
TypeScript
星标
27
派生
8
平均合并
6 小时 59 分钟
30 天内合并 PR
5

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/managed-apps 的其他 Issue

查看 microsoft/managed-apps 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。