bcgov / parks-reso-admin

Day Use Pass
Apache License 2.0
4 stars 13 forks source link

[M] Warn admin user if session has timed out in DUP admin #337

Open manuji opened 7 months ago

manuji commented 7 months ago

As a DUP admin user (park operator, bc parks staff), I want to be warned if my session within DUP admin has timed out so that I know what happened and can log in and re-try.

Acceptance Criteria:

Dev Checklist:

Note:

Original Bug: Parent ticket: https://github.com/bcgov/parks-reso-admin/issues/325

Scenario:

Issue:

Christopher-walsh22 commented 7 months ago

@manuji After the page times out and you confirm you want to make the changes; Why happens to the information you are saving? Does it successfully save or does it fail? I am currently try to reproduce

manuji commented 7 months ago

Hi @Christopher-walsh22 , no, the data wasn't saved. I lost my changes when I refreshed the page.

Christopher-walsh22 commented 7 months ago

@manuji After do some digging into this one I think its related to accessing restricted pages after you've timed out. You would need to be re-authenticated to allow the form to submit. If the form isn't submitting then there wouldn't be an api response to trigger the toast message. I can dig further into this one but it feels like it would be how DUP uses key cloak at a higher level rather than an problem with the FAQ page. We should discuss this further at the next refinement session if needed.

JLWade commented 7 months ago

Moving out of sprint 7 - this is something that should likely be addressed across all of our admin platforms - an error page to make users aware when they have timed out.

Dianadec commented 6 months ago

Notes from Mark during refinement:

Applicable to all products - admin front-ends - the keycloak service in FEs are lacking some of the implementation