fix(credentials): bind OAuth reconnect drafts to exact flows
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
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
- Lĩnh vực
- authentication, backend-api-design, security
Hướng nghiên cứu
Start by tracing the shared credential-draft lifecycle and the generic and custom OAuth callback entry points; no specific files are named in the issue. Use the listed concurrency, cross-provider, target-mismatch, environment-mismatch, success, replay, and expiry scenarios as the test plan. Done means callbacks process only the protected exact draft and reject mismatched or expired targets without changing unrelated flows.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
OAuth reconnect drafts are selected by broad ambient context rather than one exact protected flow. Tighten the shared credential-draft lifecycle so concurrent and cross-provider OAuth flows cannot consume or mutate the wrong draft.
Required changes
- validate reconnect target credential type, provider, workspace, and provider-specific environment at draft creation
- return the draft ID and bind it into protected OAuth state
- process the exact draft row identified by that protected state during callback
- repeat type, provider, workspace, and environment checks before the final credential mutation
- preserve ordinary new-credential and legacy OAuth behavior where the same invariants hold
Tests
- concurrent OAuth tabs in one workspace
- concurrent OAuth flows across workspaces
- cross-provider reconnect attempts
- wrong credential type and wrong target credential
- provider-specific environment mismatch
- exact-flow success and replay/expired-draft rejection
Context
This is a platform-wide credential integrity change affecting generic OAuth and custom OAuth flows. It is intentionally separate from Dynamics 365 CRM PR #6714, which adds UI-level environment binding but must not absorb shared draft infrastructure changes.
- Ngôn ngữ chính
- TypeScript
- Star
- 29.8k
- Fork
- 3.9k
- Merge trung bình
- 1 giờ 44 phút
- Pull request đã merge (30 ngày)
- 841
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của simstudioai/sim
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
simstudioai/sim#9831 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
v2 API rate limits self-hosted installs by IP even with billing disabledCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
simstudioai/sim#8452 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Railway template generates invalid ENCRYPTION_KEY (should be 64-char hex string)Có thể làm lại được @sahooarnav2007-gif đã nhận 15 ngày trước và không có pull request nào đang mở. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
simstudioai/sim#6246 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
simstudioai/sim#1204 · 8 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
simstudioai/sim#9734 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của simstudioai/sim
Issue tương tự
-
Bug: Cloudflare Pages static _redirects identity rule causes RSC Flight to reload as HTMLCó thể đã có người làm @Donvero đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Mantitup-Org/vista#210 ·
-
status: waiting for maintainer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
mui/material-ui#49751 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
diplodoc-platform/transform#1184 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
JonasKruckenberg/imagetools#973 ·
Maintainer thường phản hồi trong vòng 1 ngày