Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Missing admin reports scopes in picker

Đang mở Phù hợp với người mới
#765 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
88/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả 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

Bắt đầu trong auth_commands.rs và kiểm tra danh sách tĩnh SCOPE_ENTRIES được gws auth login sử dụng. So sánh các mục của danh sách này với các scope mà dịch vụ admin-reports tích hợp yêu cầu, sau đó chạy trình chọn tương tác và lệnh liệt kê hoạt động admin-reports được cung cấp để xác minh rằng cả hai scope đều có thể được chọn và sử dụng.

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

Mô tả

Environment:

  • CLI Version: 0.22.5 installed via homebrew
  • OS: macOS
  • Auth method: OAuth desktop app

Description:

The interactive scope picker shown by gws auth login does not include the scopes required for the admin-reports service.

The missing scopes are:

https://www.googleapis.com/auth/admin.reports.audit.readonly
https://www.googleapis.com/auth/admin.reports.usage.readonly

These are missing from the static SCOPE_ENTRIES list in auth_commands.rs.

Steps to reproduce:

  1. Run:
gws auth login
  1. Inspect the interactive scope picker.
  2. There is no visible Admin Reports audit/usage option.
  3. Run:
gws admin-reports activities list \
  --params '{"userKey":"all","applicationName":"login","maxResults":1}'

Observed:

The scope needed by admin-reports activities list cannot be selected from the interactive picker.

Expected:

The interactive picker should include the scopes needed by the built-in admin-reports service.

Suggested fix:

Add these scopes to SCOPE_ENTRIES:

https://www.googleapis.com/auth/admin.reports.audit.readonly
https://www.googleapis.com/auth/admin.reports.usage.readonly
Ngôn ngữ chính
Rust
Star
31.1k
Fork
1.8k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 googleworkspace/cli

Tất cả issue của googleworkspace/cli

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.