Implement device login for `ovsx`

Đang mở
#2,188 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
22/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, node.js, typescript
Lĩnh vực
api, authentication, backend, cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Java
Star
2.1k
Fork
362
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
44

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-openvsx/openvsx

Tất cả issue của eclipse-openvsx/openvsx

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.