[FEATURE] Support Oauth remote device flow for headless environments

Đang mở
#690 3 bình luận 1 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
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
authentication, cli

Hướng nghiên cứu

Đọc docs/OAUTH2.md, đặc biệt là phần OAuth2 future-enhancements, sau đó lần theo entry point pup auth login và luồng trình duyệt hiện tại của nó. Hoàn thành khi một lần đăng nhập từ xa có thể cung cấp một URL cho một trình duyệt cục bộ riêng biệt, hoàn tất việc ủy quyền mà không chuyển hướng đến máy chủ web cục bộ và để pup ở trạng thái sẵn sàng sử dụng.

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

Mô tả

authnz enhancement usability

Is your feature request related to a problem?

I want to run the Oauth flow within a remote environment without access to a web browser. This is currently listed as an enhancement for the Oauth2 auth.

Describe the solution you'd like

After running pup auth login (within a remote environment) I want to get a URL that I'll follow inside my local box. Optionally, the auth flow should check and confirm whether I'm logging from pup at some point.

After a successful login, I expect the web browser to show me a message like

"pup vx.y.z was successful authorized, you can now close this tab.

and pup should be ready to use without any redirects to a local web server.

Describe alternatives you've considered

The alternatives here are PATs or API Keys, but having a Oauth device flow would bring to pup feature parity between with other CLIs that I use in the same remote environment.

Additional context

I think that aws-cli offers a experience similar to what I want for pup

Proposed command syntax (if applicable)

pup auth login --remote-device

or alternatively

pup auth login --no-browser
Ngôn ngữ chính
Rust
Star
1k
Fork
138
Merge trung bình
17 giờ
Pull request đã merge (30 ngày)
82

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 DataDog/pup

Tất cả issue của DataDog/pup

Issue tương tự

Thêm issue về Rust

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.