AUTH WEB - Display and Accept API Terms of Use
Open
@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
QA Tasks
Pre-onditions
-
termsofuse_apidocument is published -
enable-create-api-keyflag 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-usedirectly 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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bcgov/connect
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
-
UI Enhancement - Account Info - Restyle Deactivate Account as a destructive buttonMay be free again @dimak1 claimed this 42 days ago, and no pull request is open. Open
Difficulty 2/5 1-2 days Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Q3.5 Sprint GoalsOpenconnect Mainframe
Difficulty 5/5 Over a week Newbie friendliness 15/100