Finish grant interactions through Rhyza

Aperta
#144 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Trace the grant accept/reject flow, the grant-interaction page and its API, the no-access page's “Go back” action, and the auth host configuration. Start by finding where the browser currently sends the finish request to Rafiki and how the interaction nonce is handled. Verify that accept and reject return users to the client with the expected grant status, and exercise Boutique checkout and one-click setup against Rhyza.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

When a user accepts or rejects a grant request, the wallet sends their browser to Rafiki's finish URL. Grants now live in Rhyza, so the interaction has to be finished through Rhyza's Open Payments auth service instead.

Rhyza already has the endpoint (POST /interaction/{grantId}/finish). It works differently from Rafiki's:

  • It's a POST sent by the user's browser, not a GET redirect.
  • The interaction nonce comes from the auth service's session cookie, not the URL.
  • Rhyza's IdP redirect sends only interactId (plus client name and URI), with no nonce.

Scope

  • After accept/reject, send the finish request to Rhyza from the browser.
  • Do the same for the "no access" page's "Go back" action.
  • Change the grant-interaction page and its API to work without the nonce in the URL.
  • Point the auth host config at Rhyza's Open Payments auth service.

Acceptance criteria

  • Accepting a grant ends with the grant APPROVED and the user back on the client's finish URI with interact_ref and hash.
  • Rejecting a grant ends with the grant REJECTED and the user back on the client.
  • The Boutique checkout and one-click setup flows work end to end against Rhyza.
Lingua principale
TypeScript
Stelle
51
Fork
6
Merge medio
23h 41m
PR unite (30g)
11

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di interledger/interledger-pay

Tutte le issue di interledger/interledger-pay

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.