Use OAuth 2.0 to obtain pinning service access token
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, react
- Ambito
- api, authentication, frontend
Direzione di ricerca
Inizia esaminando la configurazione esistente del servizio di pinning e l’integrazione di Pinata nella WebUI; l’issue non indica file o test specifici. Definisci il client ID, la pagina di callback, gli scopes, gli endpoint di autorizzazione e token del provider e il punto di ingresso della pagina delle impostazioni. Il lavoro è completo quando un flusso OAuth di Pinata documentato torna alla WebUI e configura il provider, con i requisiti di registrazione lato provider documentati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.).
- Lingua principale
- JavaScript
- Stelle
- 1.6k
- Fork
- 539
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ipfs/ipfs-webui
-
need/triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
ipfs/ipfs-webui#2454 ·
-
Stories anonymous objectApertaneed/triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 45/100
ipfs/ipfs-webui#2391 · 3 commenti ·
-
effort/days exp/intermediate help wanted P2 status/blocked
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
ipfs/ipfs-webui#2380 · 6 commenti · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
ipfs/ipfs-webui#2359 · 3 commenti · 1 reazione ·
-
feat: create shortcut component that can be used on any pageForse già presa @george-hub331 l’ha presa 588 giorni fa. ApertaP3
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
ipfs/ipfs-webui#2350 · 2 commenti ·
Tutte le issue di ipfs/ipfs-webui
Issue simili
-
chore cloudflare-workers consistency d1 difficulty: easy documentation dx enhancement good first issue help wanted hygiene javascript maintenance priority: P3 seo
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Link Checker ReportApertaautomated issue report
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
MattiaPARRINELLO/backstage#70 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
untemps/svelte-palette#298 ·