Use OAuth 2.0 to obtain pinning service access token
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
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, react
- Lĩnh vực
- api, authentication, frontend
Hướng nghiên cứu
Bắt đầu bằng cách kiểm tra cấu hình pinning-service hiện có và tích hợp Pinata trong WebUI; issue không nêu tên các tệp hoặc bài kiểm thử cụ thể. Xác định client ID, callback page, scopes, các authorization endpoint và token endpoint của provider, cũng như entry point của settings page. Được xem là hoàn tất khi một luồng OAuth của Pinata được tài liệu hóa quay lại WebUI và cấu hình provider, đồng thời các yêu cầu đăng ký phía provider cũng được tài liệu hóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Current situation
At the moment, configuring a pinning service requires a few manual steps:
- Accessing the pinning provider (e.g. Pinata)
- Creating an access token on the API Key management UI of the provider
- Figuring out the desired scope of actions the key should allow
- Pasting the access token on the client (IPFS WebUI settings page)
While the experience is already quite simple for the current IPFS audience, it could be improved for lazy and/or less technical users, in line with the purpose of IPFS WebUI.
Possible improvement: OAuth 2.0 authorization flow
User experience
With Pinata for instance, the UX would be:
- From WebUI, I click on Pinata icon. I'm directed to Pinata's consent page, showing IPFS WebUI logo and name, as well as the desired scope (around the lines of "Manage pinning").
- I click on "Authorize".
- Et voilà. I'm back to my WebUI instance and the provider is configured.
Technical changes
- Decide on (and document) a client_id constant, say
ipfs_webui. - Implement (and document) a callback page that receives the OAuth 2.0 response after the user has granted access, and does the token fetching logic. There are libraries that help greatly with that bit.
- Define (and document) one or several scopes based on consent granularity. I'm not familiar with the feature enough yet, but one scope might be enough at first, e.g.
pinning. - Add a clickable button to send the user to the provider's authorization endpoint, with the proper client_id, redirect_uri and scope (the same libraries can generate that link too).
- Currently that would be only for Pinata but the process would be identical for any provider, changing only the endpoints, or even only the base hostname thanks to RFC 8414 and/or OIDC Discovery.
- Possibly also an input box for configuring custom providers.
For reference, on the provider side:
- Expose OAuth 2.0 endpoints (namely the authorization endpoint and the token endpoint).
- Make the token endpoint automatically generate an API key with the right permissions (taken from the scope).
- Register IPFS WebUI as a public client, with logo and name, and the documented client_id and callback URI.
Additional notes
A similar approach would exist for other clients such as Desktop UI, CLI etc., with different callback URIs (native deep link etc.).
- Ngôn ngữ chính
- JavaScript
- Star
- 1.6k
- Fork
- 539
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
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 ipfs/ipfs-webui
-
need/triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
ipfs/ipfs-webui#2454 ·
-
Stories anonymous objectĐang mởneed/triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 45/100
ipfs/ipfs-webui#2391 · 3 bình luận ·
-
effort/days exp/intermediate help wanted P2 status/blocked
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
ipfs/ipfs-webui#2380 · 6 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
ipfs/ipfs-webui#2359 · 3 bình luận · 1 reaction ·
-
feat: create shortcut component that can be used on any pageCó thể đã có người làm @george-hub331 đã nhận 588 ngày trước. Đang mởP3
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ipfs/ipfs-webui#2350 · 2 bình luận ·
Tất cả issue của ipfs/ipfs-webui
Issue tương tự
-
Band: compact mode never draws on Claude Code 2.1.292 (level Button has a Text child)Có thể đã có người làm @Bunty9 đã 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
DietrichGebert/ponytail#1437 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
huggingface/transformers.js#1945 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update: HTTP Headers Cheat SheetĐang mởACK_WAITING HELP_WANTED UPDATE_CS
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
OWASP/CheatSheetSeries#2977 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
backend bug frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
freshframework/fresh#3920 ·