Skip to content

Account Linking QA ticket #34061

Closed
8 of 8 issues completed
Closed

Description

@sumesh85
  1. AUTH WEB - collect redirect URL for API vendor accounts #33653 - AUTH WEB - collect redirect URL for API vendor accounts
    AUTH - Vendor Redirect Linking Landing Page #34270 - AUTH - Vendor Redirect Linking Landing Page
  2. AUTH - redirect flow from vendor app, to BCROS, and back (with linking key) #33556 - AUTH - redirect flow from vendor app, to BCROS, and back (with linking key)
  3. AUTH API - linking key generation  #33557 - AUTH API - linking key generation
  4. Linking key lifecycle features that are accessible from the Account page #33662 - Linking key lifecycle features that are accessible from the Account page
  5. Alert Messages during redirect #33780 - Alert Messages during redirect
  6. Email notifications #33789 - Email notifications
  7. Auth - Link expiry / reminder job #34138 - Auth - Link expiry / reminder job

Sub-issues

Sub-issues

8 of 8 Issues completed
Loading 8 sub-issues

Activity

  1. added
    Pay
    on Jul 3, 2026
  2. added theissue type on Jul 3, 2026
  3. changed the issue type fromtoon Jul 3, 2026
  4. anisshhbatrra commented on Aug 28, 2026

    @anisshhbatrra
    Collaborator

    #33653 - AUTH WEB - collect redirect URL for API vendor accounts
    #34270 - AUTH - Vendor Redirect Linking Landing Page

    QA Testing Report

    AUTH WEB - Collect Redirect URL for API Vendor Accounts

    AUTH - Vendor Redirect Linking Landing Page

    Environment: TEST
    Date: August 28, 2026
    Status: ✅ VERIFIED
    Tested by: Anish


    Overview

    Two features were tested:

    1. Redirect URL Management — Vendor accounts can add and remove redirect URLs via the Authentication settings page
    2. Vendor Redirect Linking — Users can link their BC Registries account to a vendor/service provider account via a redirect URL flow

    Test 1 — Add Redirect URL ✅

    What was tested: A vendor account can add a redirect URL that will be used to redirect users back to their application after completing service provider account linking.

    Steps taken:

    1. Navigated to account Authentication settings
    2. Clicked + Add URL
    3. Entered redirect URL: https://test.pay.bcregistry.gov.bc.ca/anish

    Validation tested:

    • Entered an invalid URL missing https:// → UI correctly showed validation error:

      "Enter a valid URL beginning with https://"

    Screenshot evidence: Image 3 — URL validation error shown correctly ✅

    Added valid URL: https://dev.pay.bcregistry.gov.bc.ca/callback

    Result:

    • URL added successfully with ADDED badge
    • Displays: Redirect URL, Created By (BCREGTEST Lin TWENTYTHREE), Created Date (Aug 28, 2026)
    • Remove button available

    Screenshot evidence: Image 1 — Redirect URL added successfully ✅


    Test 2 — Remove Redirect URL ✅

    What was tested: Vendor account can remove a redirect URL with a confirmation dialog.

    Steps taken:

    1. Clicked Remove on existing redirect URL
    2. Confirmation dialog appeared with warning message

    Dialog content verified:

    "Caution: Remove Redirect URL? If you remove this URL, users relying on it will not be able to be redirected back to your application to complete the service provider connection."

    Screenshot evidence: Image 2 — Remove confirmation dialog shown correctly ✅


    Test 3 — Vendor Redirect Linking Flow ✅

    What was tested: End-to-end vendor linking flow using the redirect URL.

    Vendor Linking URL format:

    https://dev.account.bcregistry.gov.bc.ca/vendor-linking?vendorAccountId={id}&returnUrl={encoded_url}
    

    URL used for testing:

    https://dev.account.bcregistry.gov.bc.ca/vendor-linking?vendorAccountId=3143&returnUrl=https%3A%2F%2Fdev.pay.bcregistry.gov.bc.ca%2Fcallback
    

    Steps taken:

    1. Navigated to vendor linking URL with vendorAccountId=3143
    2. Completed login/authentication flow
    3. Login successful — redirected to service provider

    Screenshot evidence: Image 6 — Login Successful screen shown ✅

    Result on account (anishtechaug27 — account 3141):

    • Third-Party Connections page showed new connection:
      • Service Provider Name: anish-vendor-new
      • Date Added: Aug 28, 2026 7:37AM
      • Created By: BCREGTEST Delphia EIGHTEEN
      • Expiry Date: Aug 28, 2027

    Screenshot evidence: Image 4 — Third-Party Connection successfully linked ✅

    Email notification received:

    Subject: New Third-Party Service Provider Connected – from TEST environment
    Service Provider Name: anish-vendor-new
    Date Added: 2026-08-28
    Account Number: 3141
    Account Name: anishtechaug27
    

    Screenshot evidence: Image 5 — Email notification received correctly ✅


    Test 4 — Remove Third-Party Connection ✅

    What was tested: Account can remove a third-party service provider connection with confirmation.

    Steps taken:

    1. Navigated to Third-Party Connections page
    2. Clicked Remove on anish-vendor-new connection
    3. Confirmation dialog appeared

    Dialog content verified:

    "Caution: Remove Connection — Removing this connection will disconnect the service provider from your account. Do you want to proceed?"

    Screenshot evidence: Image 8 — Remove connection confirmation dialog ✅

    After removal:

    • Third-Party Connections page shows: "No connected service provider."

    Screenshot evidence: Image 9 — Connection removed successfully ✅

    Email notification received:

    Subject: New Third-Party Service Provider Removed – from TEST environment
    Service Provider Name: anish-vendor-new
    Date Removed: 2026-08-28
    Account Number: 3141
    Account Name: anishtechaug27
    

    Screenshot evidence: Image 10 — Removal email notification received ✅


    Also tested — Remove Redirect URL confirmation (Test env):

    Screenshot evidence: Image 7 — Remove redirect URL confirmation dialog on test env ✅


    Test Results Summary

    Test Description Result
    Add redirect URL URL added with validation ✅
    URL validation Invalid URL shows error ✅
    Remove redirect URL Confirmation dialog + removal ✅
    Vendor linking flow End-to-end redirect linking ✅
    Login successful page Redirected after auth ✅
    Third-party connection visible Connection shows in account ✅
    Connection email notification Email received on link ✅
    Remove third-party connection Confirmation dialog + removal ✅
    Connection removed from UI "No connected service provider" ✅
    Removal email notification Email received on removal ✅

    All 10 checks passed ✅


    Notes

    • returnUrl must be URL-encoded when passed as query parameter — :// must be %3A%2F%2F and / must be %2F
    • returnUrl domain must be allowlisted by the vendor linking service — unregistered domains return "Redirect URL Error"
    • Email notifications sent to account administrator/coordinator for both connection and removal events
    • Connection expiry date is set to 1 year from date added (Aug 28, 2026 → Aug 28, 2027)

    Staff can view the tab and URLs

    User role can view the tab and the URLs

    Screenshot 2026-08-28 at 3.23.36 PM.png

    Screenshot 2026-08-28 at 10.54.02 AM.png

    only Admin and Coordinator can edit/add URLs

    Screenshot 2026-08-28 at 11.00.33 AM.png

    Screenshot 2026-08-28 at 10.57.22 AM.png

    User comes to our app with a redirect url in the path. We store it in session.
    User completes the linking
    we append the Account Id (lawfirm's) and linking key to the redirect URL and redirects back to them

    Example URL recieved ---->https://test.pay.bcregistry.gov.bc.ca/newcallbackaug28?linkingKey=<*****************>&accountId=3141
    Additional Changes (AUTH-API and AUTH-WEB):

    store redirect_url specified in account_linking_keys table (new column) for traceability and replayability

    Screenshot 2026-08-28 at 3.37.05 PM.png

    Screenshot 2026-08-28 at 10.48.28 AM.png

    Screenshot 2026-08-28 at 10.50.31 AM.png

    Screenshot 2026-08-28 at 10.39.25 AM.png

    Screenshot 2026-08-28 at 10.36.58 AM.png

    Screenshot 2026-08-28 at 9.35.51 AM.png

    Screenshot 2026-08-28 at 9.36.21 AM.png

    Screenshot 2026-08-28 at 11.14.48 AM.png

    Key expiry (30 days)---->

    Screenshot 2026-08-28 at 12.43.41 PM.png

    Screenshot 2026-08-28 at 12.45.28 PM.png

  5. anisshhbatrra commented on Aug 28, 2026

    @anisshhbatrra
    Collaborator

    #33557 - AUTH API - linking key generation

    Screenshot 2026-08-28 at 12.43.41 PM.png

    Screenshot 2026-08-28 at 3.11.57 PM.png

    date extended in DB as well

    Screenshot 2026-08-28 at 3.16.06 PM.png

  6. anisshhbatrra commented on Aug 28, 2026

    @anisshhbatrra
    Collaborator

    #34138 - Auth - Link expiry / reminder job

    Tested in test , working as expected

    Steps Taken --->

    updated the expiry date to 30 days in DB
    Triggered the below job in test env
    auth-jobs-test-run-account-link-notifications

    this triggers an email notification related to key expiry

    image.png

  7. anisshhbatrra commented on Aug 28, 2026

    @anisshhbatrra
    Collaborator

    #33789 - Email notifications

    Tested in Test . working as expected

    Email Notification - New Connection Added

    image.png

    Email Notification - Connection Removed

    Screenshot 2026-09-02 at 12.52.39 PM.png

    Email Notification - 30-Days Before Expiring

    Screenshot 2026-09-02 at 12.52.26 PM.png

    Email Notification - Connection Expired

    Screenshot 2026-09-02 at 12.52.06 PM.png

  8. anisshhbatrra commented on Aug 30, 2026

    @anisshhbatrra
    Collaborator

    #34270 - AUTH - Vendor Redirect Linking Landing Page

    QA Testing Report

    UI Implementation — Redirect URL and Linking Key

    Ticket: UI implementation now that redirect url and linking key implementation is completed
    Environment: TEST
    Date: August 30, 2026
    Status: ✅ VERIFIED (1 item pending dev clarification)
    Tested by: Anish


    Overview

    This ticket implements the end-to-end vendor redirect linking flow where:

    1. User arrives at BC Registries with a redirect URL
    2. User completes account linking
    3. System appends accountId and linkingKey to the redirect URL and sends user back

    Flow Step 1 — Store returnUrl in Session ✅

    Test: Navigate to vendor linking URL with returnUrl parameter

    URL used:

    https://test.account.bcregistry.gov.bc.ca/vendor-linking?vendorAccountId=3143&returnUrl=https%3A%2F%2Ftest.pay.bcregistry.gov.bc.ca%2Fcallback
    

    Result:

    • URL accepted and linking flow initiated ✅
    • Session storage checked via DevTools → Application → Session Storage
    • Auth session data present for https://test.account.bcregistry.gov.bc.ca ✅

    Note: returnUrl must be URL-encoded — :// → %3A%2F%2F, / → %2F. Unencoded returnUrl causes "Redirect URL Error".


    Flow Step 2 — User Completes Linking ✅

    Test: Complete full vendor linking flow end-to-end

    Steps taken:

    1. Navigated to vendor linking URL
    2. Completed BCSC login/authentication
    3. Login successful page shown — "Redirecting you to your service provider in 2 seconds..."
    4. Connection established

    Results:

    • Login successful page displayed correctly ✅
    • Third-Party connection appeared in account anishtechaug27 (account 3141):
      • Service Provider: anish-vendor-new
      • Date Added: Aug 28, 2026
      • Expiry Date: Aug 28, 2027
    • Email notification received:
      Subject: New Third-Party Service Provider Connected – from TEST environment
      Service Provider Name: anish-vendor-new
      Account Number: 3141
      Date Added: 2026-08-28
      

    Flow Step 3 — accountId and linkingKey Appended to returnUrl ✅

    Test: Verify correct params appended to redirect URL after linking

    Actual redirect URL received:

    https://test.pay.bcregistry.gov.bc.ca/newcallbackaug28?linkingKey=VIHrMkalgYM7YfH7h_5Qk6hXsXtRr8CAPm_BYD0m3xs&accountId=3141
    

    Verification:

    Param Expected Actual Result
    accountId 3141 (linked account) 3141 ✅
    linkingKey valid key from DB VIHrMkalgYM7YfH7h... ✅
    Redirect to returnUrl https://test.pay.bcregistry.gov.bc.ca/... ✅ redirected ✅

    Additional Changes — redirect_url New Column ✅

    Test: Verify redirect_url column exists and is populated in account_linking_keys table

    DB Query used:

    SELECT id, linking_key, account_id, vendor_account_id, status, redirect_url, last_used, expires_on
    FROM auth.account_linking_keys
    ORDER BY id DESC;

    Result:

    {
      "id": "4",
      "linking_key": "w4lwqYcWbmQwPLPVNFXnOVR5Uymh_E77kf9yZAT5vxk",
      "account_id": "3141",
      "vendor_account_id": "3143",
      "status": "REVOKED",
      "redirect_url": "https://test.pay.bcregistry.gov.bc.ca/newcallbackaug28",
      "last_used": "",
      "expires_on": "2027-09-27T16:42:27Z"
    }

    Verification:

    Check Expected Result
    redirect_url column exists New column present ✅
    redirect_url populated Matches returnUrl used ✅
    Historical records preserved All linking keys in table ✅ (traceability)
    Multiple statuses tracked ACTIVE, EXPIRED, REVOKED ✅
    expires_on correct 1 year from creation ✅

    Traceability — All Linking Keys Verified

    All linking keys are preserved in the table for historical traceability:

    ID Status redirect_url expires_on
    7 ACTIVE /newcallbackaug29 2027-08-30
    6 EXPIRED /newcallbackaug29 2027-08-30
    5 REVOKED /<script>... 2027-08-30
    4 REVOKED /newcallbackaug28 2027-09-27
    3 REVOKED /newcallbackaug28 2027-08-28
    2 REVOKED /newcallbackaug28 2027-08-28
    1 REVOKED /anish 2027-08-28

    ✅ Full history maintained for replayability


    Edge Cases Tested

    Test Result
    Non-allowlisted returnUrl domain ❌ "Redirect URL Error" shown correctly
    Expired linking key (set expires_on to past) ✅ Key marked EXPIRED
    URL-encoding of returnUrl required ✅ Confirmed — unencoded fails

    Bugs Found

    # Bug Severity
    1 XSS script stored unescaped in redirect_url column — <script>alert('xss')</script> accepted 🔴 High — reported

    Pending — Dev Clarification Needed

    Item Status
    last_used column not updating after successful linking flow — all records show empty despite multiple completed flows ⏳ Awaiting dev response — may be future implementation

    Overall Results

    Requirement Status
    User arrives with returnUrl in path ✅
    returnUrl stored in session ✅
    User completes linking ✅
    accountId appended to returnUrl on redirect ✅
    linkingKey appended to returnUrl on redirect ✅
    redirect_url new column exists ✅
    redirect_url populated correctly ✅
    Historical records for traceability ✅
    last_used tracking for replayability ⏳ Pending
  9. anisshhbatrra commented on Aug 30, 2026

    @anisshhbatrra
    Collaborator

    Tested in Test .working as expected

    #33780 - Alert Messages during redirect

    Login Page: Third-Party Redirect Alert

    Screenshot 2026-08-30 at 12.29.28 PM.png

    Screenshot 2026-08-30 at 12.20.57 PM.png

    Screenshot 2026-08-30 at 12.21.36 PM.png

    Screenshot 2026-08-30 at 12.33.04 PM.png

  10. anisshhbatrra commented on Sep 3, 2026

    @anisshhbatrra
    Collaborator

    #33780 - Alert Messages during redirect

    Tested in Test . .working as expected

    Screenshot 2026-09-03 at 9.36.01 AM.png

    Screenshot 2026-09-03 at 9.37.51 AM.png

    Screenshot 2026-09-02 at 2.23.07 AM.png

  11. anisshhbatrra commented on Sep 3, 2026

    @anisshhbatrra
    Collaborator

    #33662 - Linking key lifecycle features that are accessible from the Account page

    Need new tab to show connected apps

    Screenshot 2026-09-03 at 9.47.08 AM.png

    matched columns to design

    Screenshot 2026-09-03 at 9.47.44 AM.png

    Actions are limited to 'Remove'
    Tab only visible by all account roles
    'Remove' button only accessible by account Admins

    Screenshot 2026-09-03 at 1.41.20 AM.png

    Screenshot 2026-09-03 at 9.47.44 AM.png

    Screenshot 2026-09-03 at 9.47.57 AM.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Pay

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions