[FEATURE] Add a fixed callback port for browser authentication
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
首先跟踪 auth 登录解析器和命令,直到核心身份验证实现。检查 issue 中描述的现有错误处理、文档、测试和 Changie 条目。当 redirect-port 的行为和验证能够正常工作,且不改变默认的 login 或 silent-cache 行为时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Use Case / Problem
Interactive browser authentication currently lets MSAL choose an ephemeral localhost callback port. When Fabric CLI runs on a remote machine over SSH, users cannot reliably preconfigure port forwarding between the local browser and the remote callback listener.
Proposed Solution
Add fab auth login --redirect-port <port> for interactive user authentication.
Expected behavior:
- Accept ports 1 through 65535.
- Skip authentication-method selection and use browser authentication when interaction is required.
- Pass the fixed port to MSAL's local callback listener.
- Temporarily disable Windows/macOS authentication brokers so MSAL honors the port.
- Reject combinations with Azure CLI, managed identity, and service-principal options.
- Return an actionable error when the port cannot be bound.
- Preserve existing silent-cache behavior and all default login behavior when omitted.
Remote usage:
ssh -o ExitOnForwardFailure=yes -L 8400:127.0.0.1:8400 user@remote
BROWSER=echo fab auth login --redirect-port 8400
Alternatives Considered
- Device-code authentication: useful for headless environments but does not provide the same browser callback flow and is tracked separately in #215.
- Relying on an ephemeral port: cannot be forwarded predictably before login.
- Preflight-binding the port: introduces a race; the implementation should let MSAL perform the real bind.
Impact Assessment
- This would help me personally
- This would help my team/organization
- This would help the broader fabric-cli community
Implementation Attestation
- I understand this feature should maintain backward compatibility with existing commands
- I confirm this feature request does not introduce performance regressions for existing workflows
- I acknowledge that new features must follow fabric-cli's established patterns and conventions
Implementation Notes
I have a tested implementation ready in my fork and would like maintainer acknowledgment before opening the PR, per the contribution guide. Please add the help wanted label if the team accepts this contribution. The implementation includes parser, command, core auth, error handling, documentation, tests, and a Changie entry.
- 主要语言
- Python
- 星标
- 178
- 派生
- 65
- 平均合并
- 2 天 22 小时
- 30 天内合并 PR
- 5
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/fabric-cli 的其他 Issue
-
[FEATURE] Loosen strict dependency pins to improve compatibility with newer `fabric-cicd` versions可能重新可做 关联的 PR 已关闭且未合并。 未关闭ai:feature-triage:unable-to-process enhancement
难度 1/5 1 小时以内 新手友好度 70/100
microsoft/fabric-cli#294 · 2 条评论 · 1 个 reaction ·
-
[BUG] bulk-export errors with "[NotSupported] Only supported for Lakehouse/Files"可能重新可做 @rksharma-owg 于 44 天前认领,目前没有进行中的 PR。 未关闭ai:bug-triage:unable-to-process bug
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/fabric-cli#287 · 2 条评论 ·
-
ai:feature-triage:unable-to-process enhancement
难度 3/5 1-2 天 新手友好度 64/100
microsoft/fabric-cli#292 · 1 条评论 ·
-
ai:question-triage:unable-to-process question
难度 4/5 3-5 天 新手友好度 25/100
microsoft/fabric-cli#288 · 2 条评论 ·
-
ai:feature-triage:unable-to-process enhancement
难度 4/5 3-5 天 新手友好度 42/100
microsoft/fabric-cli#279 · 1 条评论 ·
查看 microsoft/fabric-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
scikit-learn-contrib/category_encoders#553 ·
维护者通常 1 天内回复
-
flaky-watch
难度 2/5 1-3 小时 新手友好度 88/100
btclib-org/btclib#2839 ·
维护者通常 1 天内回复
-
BarrelList constructor drops false-valued iterable contents可能已有人在做 @Gambit-Checkmate 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 19 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
vllm-project/vllm#63863 ·
维护者通常 1 天内回复