AUTH WEB - Display and Accept API Terms of Use

Open
#124 17 comments 0 reactions 2 assignees View on GitHub

@Eandersongit is already working on this.

Since Oct 16, 2026.

Assessment

This issue has not been assessed yet.

Description

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

Dominant language
No language data
Stars
0
Forks
4
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bcgov/connect

All issues in bcgov/connect

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.