Implement device login for `ovsx`

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
22/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
java, node.js, typescript

调研方向

Read RFC 8628 and the requested ovsx login flow: CLI shows a user-code link, polls with client id/key and device code, then stores a scoped token in the system keychain. Trace existing CLI auth/login and token storage, plus the Java backend and web UI authorization paths that must issue and complete the device grant. Done means publishers can authorize the CLI from the browser and the CLI receives and persists a working token without inventing extra scope beyond the issue.

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

描述

cli enhancement priority:low server

It would be a real UX improvement if we implemented a device login flow on the CLI. Publishers would run ovsx login, and a link with a user code would be provided, taking them to the web UI (prompting login if they aren't already logged in).

From there, they'd authorize the device — in this case, the CLI — to act on behalf of their publisher account. This should generate an access token that gets forwarded to the CLI, ideally scoped to just what it needs.

Meanwhile, the CLI would keep polling the server using its client ID, key, and the previously generated device code. Once the backend has generated the token, the CLI should store it in the system keychain.

RFC 8628

主要语言
Java
星标
2.1k
派生
362
平均合并
1 天 3 小时
30 天内合并 PR
44

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

eclipse-openvsx/openvsx 的其他 Issue

查看 eclipse-openvsx/openvsx 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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