Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login and Logout Redirects #10756

Open
lmcclung opened this issue Jan 20, 2022 · 8 comments
Open

Login and Logout Redirects #10756

lmcclung opened this issue Jan 20, 2022 · 8 comments

Comments

@lmcclung
Copy link
Contributor

lmcclung commented Jan 20, 2022

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)

  • from Business Registry marketing page, logging in as "staff", redirect to Staff Dashboard existing behaviour
  • from Business Registry marketing page, logging in as "SBC staff", redirect to SBC Staff Registries Dashboard - Auth Web: logout/login redirects #10856
  • from Business Registry marketing page, logging in as "not staff", redirect to BC Registries Dashboard - Auth Web: logout/login redirects #10856
    .
  • from Business Registry login page, logging in as "staff", redirect to Staff Dashboard - Auth Web: logout/login redirects #10856
  • from Business Registry login page, logging in as "SBC staff", redirect to SBC Staff Registries Dashboard - Auth Web: logout/login redirects #10856
  • from Business Registry login page, logging in as "not staff", redirect to BC Registries Dashboard - Auth Web: logout/login redirects #10856
    .
  • from Staff Dashboard, logging in as "staff", redirect to Staff Dashboard existing behaviour
  • from Staff Dashboard, logging in as "SBC staff", redirect to SBC Staff Registries Dashboard - Auth Web: logout/login redirects #10856
  • from Staff Dashboard, logging in as "not staff", redirect to BC Registries Dashboard - Auth Web: logout/login redirects #10856
    .
  • from My Business Registry, with valid credentials, redirect to My Business Registry - existing behaviour
  • from My Business Registry with invalid credentials TBD - Auth Web: logout/login redirects #10856
    .
  • from Filings UI, just show error dialog; on Exit, go to Business Registry marketing page - existing behaviour
  • from Create UI, just show error dialog; on Exit, go to Business Registry marketing page - existing behaviour
  • from Edit UI, just show error dialog; on Exit, go to Business Registry marketing page - existing behaviour
    .
  • from misc PPR bookmarks (user/staff) with invalid credentials, should ... needs design, see PPR UI: Login error handling + login redirect #10657

Test Notes

Please test will all variations of logins, including:

  • Client BCSC/BCeID
  • SBC Staff IDIR
  • BC Registries Staff / BCOL helpdesk IDIR
  • Other IDIR
@lmcclung lmcclung added the ENTITY Business Team label Jan 20, 2022
@tlebedovich tlebedovich changed the title UI - Logon page with three logon options (for bookmarks) UI - Generic Logon page with three logon options (for bookmarks) Jan 20, 2022
@severinbeauvais severinbeauvais self-assigned this Jan 21, 2022
@forgeuxGH5
Copy link
Collaborator

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

  • Currently I see the BC Registries and Online Services home page when I select my bookmark - this needs to be changed to the above flow

@forgeuxGH5
Copy link
Collaborator

Copied from #10248

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

@severinbeauvais
Copy link
Collaborator

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

@Kaineatthelab
Copy link
Collaborator

@severinbeauvais ideally but lower priority

@severinbeauvais severinbeauvais changed the title UI - Generic Logon page with three logon options (for bookmarks) Business Registry UIs: Generic login page (for bookmarks) + logout redirects Jan 26, 2022
@severinbeauvais severinbeauvais changed the title Business Registry UIs: Generic login page (for bookmarks) + logout redirects UIs: Login and logout redirects Jan 26, 2022
@severinbeauvais severinbeauvais changed the title UIs: Login and logout redirects Login and logout pages and redirects Jan 26, 2022
@severinbeauvais severinbeauvais changed the title Login and logout pages and redirects Login and Logout Pages and Redirects Jan 26, 2022
@bcgov bcgov deleted a comment from lmcclung Jan 27, 2022
@severinbeauvais
Copy link
Collaborator

@chdivyareddy FYI ^^^

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

@chdivyareddy
Copy link
Collaborator

@severinbeauvais Sounds good:)

@severinbeauvais
Copy link
Collaborator

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 severinbeauvais changed the title Login and Logout Pages and Redirects Login and Logout Redirects Jan 28, 2022
@severinbeauvais
Copy link
Collaborator

severinbeauvais commented Feb 2, 2022

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

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

No branches or pull requests

7 participants