[Bug] Device-code sign-in fails with post_request_failed: invalid_client in CLI 0.27.0–0.29.0
@jiankai82 已经在做这个了。
开始于 2026年10月20日。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 15/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- node.js, typescript
- 领域
- authentication, cli
调研方向
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 内容生成。
描述
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?
- 主要语言
- TypeScript
- 星标
- 27
- 派生
- 8
- 平均合并
- 6 小时 59 分钟
- 30 天内合并 PR
- 5
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/managed-apps 的其他 Issue
-
[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 404可能已有人在做 @tonystevenj 于 1 天前认领。 未关闭bug
microsoft/managed-apps#45 · 已指派 1 人 ·
-
[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 supported可能已有人在做 @tonystevenj 于 1 天前认领。 未关闭bug
microsoft/managed-apps#44 · 已指派 1 人 ·
-
[Bug] Cannot block Tenant wide CLI path可能已有人在做 @ergonza93 于 1 天前认领。 未关闭bug
microsoft/managed-apps#43 · 1 条评论 · 已指派 1 人 ·
-
[Bug] `ms app clone` fails on macOS可能已有人在做 @sokhenglim1 今天认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 58/100
microsoft/managed-apps#42 · 1 条评论 · 已指派 1 人 ·
-
bug
难度 4/5 3-5 天 新手友好度 45/100
microsoft/managed-apps#31 · 已指派 1 人 ·
查看 microsoft/managed-apps 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
equinor/prisma-decision-web#927 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
bigbluebutton/bigbluebutton#26166 ·
维护者通常 1 天内回复