bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 59 forks source link

BUG - Bookmarked log ins going through the Login page should direct to the appropriate dashboard or the bookmarked page #10812

Closed forgeuxGH5 closed 2 years ago

forgeuxGH5 commented 2 years ago

Currently all log ins going through the login page are directing to the Staff dashboard. Bookmarked dashboard log ins should direct to the appropriate dashboard for the login type.

Impact of this bug Users with bookmarked dashboard pages will go to the wrong dashboard

Chance of Occurring (high/medium/low/very low) High

Steps to Reproduce:

  1. Go to https://dev.bcregistry.ca/business/auth/staff/dashboard/active
  2. Login as not IDIR (ie, BCSC or BCeID)
  3. Observe that URL is now https://dev.bcregistry.ca/business/auth/staff/dashboard/active
  4. Observe that Staff Dashboard is displayed

Expected: Should see "invalid credentials" page, or redirect to BC Registries dashboard.


Steps to Reproduce:

  1. Go to https://dev.bcregistry.ca/business/auth/staff/dashboard/active
  2. Login as BRTEST5 (IDIR without staff role)
  3. Observe that URL is now https://dev.bcregistry.ca/business/auth/staff/dashboard/active
  4. Observe that Staff Dashboard is displayed

Expected: Should see SBC Staff Registries Dashboard (in BC Registries).

severinbeauvais commented 2 years ago

This ticket will be implemented by #10856.