GCTC-NTGC / gc-digital-talent

GC Digital Talent is the new recruitment platform for digital and tech jobs in the Government of Canada. // Talents numériques du GC est la nouvelle plateforme de recrutement pour les emplois numériques et technologiques au gouvernement du Canada.
https://talent.canada.ca
GNU Affero General Public License v3.0
22 stars 9 forks source link

🐛 Getting Force-logged out after 10 minutes of being logged in. #11431

Closed MagikEh closed 2 months ago

MagikEh commented 2 months ago

🐛 Bug

Getting force-logged out, 10 minutes after being successfully logged in to the applicant landing page.

🦋 Expected Behaviour

I expect to only be force-logged out after 10 minutes of $${\color{green}in \color{red}activity}$$ as is the industry standard/good practice.

🕵️ Details

It feels quite jarring given the deep-thought self-reflection nature of filling out fields when applying for a position to (without warning, see #8779) suddenly get kicked to a page saying

See you again :) get rekt nerd, your session expired * not a direct quote

ouch, my feels :C

--------------------------------------

📋 Steps to Reproduce

  1. Log in via talent.canada.ca/en/login-info
  2. Start a timer as soon as the landing page finishes loading.
  3. Do anything or nothing for 10 minutes. Tested with all of:
    • Sitting on https://talent.canada.ca/en/applicant page (immediately after login), out of focus and not interacting
    • Sitting within job application's text entry box, continuously typing (If I don't hit the save button, all work is lost by the force-logout function, managed to hit ~600 words of ramble typing in 10 minutes!)
    • Clicking around a job application's different stages [Review your career timeline, Education requirements, Skill requirements] every 30s
  4. Get logged out automatically!

📸 Screenshot

Image shows the dev tool's network timeline, starting at being successfully logged in, to being timed out (I sat on the landing page for the entire duration) and then to the logged-out landing page being fully loaded. (See the increments of 10,000ms goes all the way up to ~610,000ms (10 minutes) before the red[DOMContentLoaded]/blue[load] milestones of the 'logged out page' are passed.) image

I have the HAR file available for analysis if required, just DM me and I'll ship it.

🙋‍♀️ Proposed Solution

if (user.not_active) {
  sleep 600
  get_rekt_n_logout()
}

✅ Acceptance Criteria

marc-donofrio commented 2 months ago

Hello there! Thank you for submitting this issue. While we are investigating, can you send us the har file here: support-soutien@talent.canada.ca

MagikEh commented 2 months ago

Sent!

gobyrne commented 2 months ago

Thanks again for the report, this should be resolved now. Closing.