alxjrvs / alxjrvs/orrey

Console login: Discord OAuth with identify only; /console command

Đang mở
#24 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
phase:2
Ngôn ngữ chính
HTML
Star
0
Fork
0
Merge trung bình
1 giờ 34 phút
Pull request đã merge (30 ngày)
23

Mô tả

Discord is the only identity system.

- [ ] OAuth authorization-code flow with **`identify` scope only**. Never request `guilds`.
- [ ] Roles are read with the **bot token** (guild member endpoint), not the user's token; organiser/admin gating comes from a role id in `settings`.
- [ ] Discord access tokens last ~7 days with **rotating** refresh tokens — store the current pair per user, replace on every refresh, and treat a refresh failure as logged-out.
- [ ] Session cookie: `HttpOnly`, `Secure`, `SameSite=Lax`, same origin as the API; state parameter on the authorize redirect.
- [ ] `/console` command: answers ephemerally with a short-lived login link that lands the user straight in the console.
- [ ] PKCE is unnecessary for a confidential client and whether Discord's token endpoint accepts it is undocumented — don't rely on it.

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

No files or tests are named. Start by mapping the Discord bot command handler, OAuth/API entry points, settings, and session storage in the Cloudflare Workers project, then verify Discord's authorization, member, and token-refresh behavior. Done means every checklist item works, including role gating, rotating refresh tokens, secure sessions, and the ephemeral /console login link.

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

Đánh giá

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

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.