bcgov / entity

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

Login and Logout Redirects #10756

Open lmcclung opened 2 years ago

lmcclung commented 2 years ago

See also Scott's spreadsheet.

Problems to solve:

(AC from design tickets #10231, #10633 and #10656)

As a BC Registries user, When I log out of my account for the day, Then I want to be redirected to the appropriate logged out page and know that I have successfully logged out.

Solution: if a user logs out of any dashboard or app page, redirect them to a generic login page. It has already been created in ticket #10248 for Business Registry and PPR and in ticket #10795 for BC Registries. Now we need to also include the functionality for Business Registry apps. (Marketing pages are the exception: if a user logs out of a marketing page, redirect them to the logged out version of that marketing page.)

As a BC Registries user, When I access a bookmarked BC Registries (including Business Registry and PPR) page from a non-logged-in state, Then I want the ability to log on using IDIR, BC Services Card App, or BCeID.

Solution: if a user bookmarks the staff/uber dashboard or app page in a logged out state, direct users to the generic login page. If possible (ie, nice to have), after login, redirect user back to original bookmark (dashboard or app page). This is now supported by #10905, though the app needs to send a redirect parameter (#10853).

As a BC Registries user, When I log in to a page that I don't have access to, Then I want to see an appropriate message and/or be redirected to the BC Registries dashboard.

Solution: need design - see #10656

Dashboards include:

Marketing pages include:

App pages include:

Use Cases:

Logout Behaviours

Bookmark / Login Behaviours

(In most cases, after logging in, go to BC Registries dashboard

("staff" = IDIR with staff role) ("SBC staff" = IDIR with gov_account_user role and "Service BC" in branch name) ("not staff" = none of the above, for example, BCSC, BCeID or other IDIRs)

Test Notes

Please test will all variations of logins, including:

forgeuxGH5 commented 2 years ago

Copied from #10248

Use Case: Given I am logged in as a client user and I bookmark the BC Registry Dashboard then log out When I open my browser bookmark to open my BC Registries Dashboard Then I see my Login page, and after logging in, I see my BC Registries Dashboard

image.png

forgeuxGH5 commented 2 years ago

Copied from #10248

Note: Staff flows also need the parallel behaviour for their respective dashboards.

severinbeauvais commented 2 years ago

@lmcclung @Kaineatthelab Is this required for MVP on Monday?

Kaineatthelab commented 2 years ago

@severinbeauvais ideally but lower priority

severinbeauvais commented 2 years ago

@chdivyareddy FYI ^^^

(I will work on syncing Scott's spreadsheet with this Story and its tickets today.)

chdivyareddy commented 2 years ago

@severinbeauvais Sounds good:)

severinbeauvais commented 2 years ago

I have finished this Story (and moved it to Epic in Progress) and created linked tickets for the work, which can now be prioritized.

severinbeauvais commented 2 years ago

Changed to lower priority than account ID issues per PO sync today.