AUTH WEB - Display and Accept API Terms of Use

Aperta
#124 17 commenti 0 reazioni 2 assegnatari Vedi su GitHub

@Eandersongit ci sta già lavorando.

Dal 16/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

UX
  • Develop API Terms of use page (placeholder for now)
  • Clicking on 'Create API Key' redirects the user to the API Terms of Use page
  • Accept and Decline buttons
  • Clicking on Accept button, redirects user to Developer Access page and opens Create API Key modal
  • Clicking on Decline button, redirects user to Developer Access page

Figma

QA Tasks
Pre-onditions
  • termsofuse_api document is published
  • enable-create-api-key flag is ON
  • You're logged in as an admin on an account that hasn't accepted the API Terms
  • The design has change and there is no longer a Create API Key modal
Verify
  • Clicking "Create API Key" on Developer Access opens the API Terms of Use page
  • The terms page shows the terms content, the banner, and Agree / Decline buttons
  • Clicking Agree opens Developer Access with the Create API Key inline form already open
  • Account that already accepted the latest version: clicking "Create API Key" opens inline form with no redirect
  • Clicking Decline returns to Developer Access, and the terms are still not accepted
  • "Back to Developer Access" returns to Developer Access
  • If the terms document fails to load, an error shows and the Agree/Decline buttons are hidden
  • After accepting, the API Terms row in Account Info shows today's date

Additional scenarios to verify

Accepting and declining

  • Double-clicking Agree sends only one accept request
  • If the accept request fails (error/timeout), the user stays on the terms page with "The API Terms of Use could not be accepted. Please try again." and can click Agree again
  • When the user is on Terms page and a newer terms version is published, clicking Agree shows "The API Terms of Use have been updated. Please refresh the page…", and after refreshing they can accept the new version

Versioning

  • If a new terms version is published after the user opened the inline form, submitting the form shows an error modal instead of creating the key. Clicking Create Key again, takes user to accept

Direct URL and access

  • Opening /account/<orgId>/api-terms-of-use directly while logged out goes to login and then back to the terms page
  • A non-admin team member (Coordinator, User) cannot reach "Create API Key" or accept the terms on behalf of the account
  • A suspended or inactive account cannot open the terms page
  • Clicking the browser Back button after Agree returns to the terms page, and it doesn't create a second acceptance

Account switching

  • Switching accounts while on the terms page, then clicking Agree, accepts for the account in the URL. If user is not allowed to accept the terms, clicking Agree fails with an error
  • After accepting on account A, switching to account B (who is not accepted) and clicking "Create API Key" is blocked and user cannot create a new key

Accessibility

  • Agree, Decline and "Back to Developer Access" can be reached with Tab and activated with Enter

This checklist covers the key scenarios only and isn't a complete set of test cases

Lingua principale
Nessun dato sulla lingua
Stelle
0
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 bcgov/connect

Tutte le issue di bcgov/connect

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.