server: token list, token remove, and an expiry for static tokens

Đang mở
#488 1 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
authentication, backend, cli

Hướng nghiên cứu

Start by locating the pivotkit-server token new and token show command implementations, the auth.tokens handling, and the server's token validation and check-config paths. Add listing and removal with the requested backup behavior, support optional expiry for static tokens, and ensure expired tokens are refused with 401 and check-config warns a week ahead. Done means these behaviors work while token values are never shown; signed short-lived tokens are tracked separately in #485.

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

Mô tả

area:server enhancement

pivotkit-server token new and token show exist since 0.7.0, and the server creates admin at first start. I also want token list (name, source, profile, scopes, created, expires; never a value) and token remove <name> (removes the entry from auth.tokens with a backup, and the file when the server created it). A static entry should take an optional expires (a date): the server refuses it with 401 afterwards and check-config warns a week ahead. Signed short-lived tokens stay in #485.

Ngôn ngữ chính
JavaScript
Star
1
Fork
1
Merge trung bình
3 giờ 34 phút
Pull request đã merge (30 ngày)
213

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 eizedev/pivotkit

Tất cả issue của eizedev/pivotkit

Issue tương tự

Thêm issue về JavaScript

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.