Closed
Bug 1310035
Opened 9 years ago
Closed 9 years ago
Detection of expired credentials isn't working anymore
Categories
(Taskcluster :: UI, defect)
Taskcluster
UI
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dustin, Assigned: dustin)
Details
Several times now, I've loaded https://tools.taskcluster.net thinking "I'll have to sign in again", only to see my cliendId in the upper right. But indeed, the credentials are not valid, and on the very next page load, the menu changes to read "Sign In".
Something in the logic to handle credential expiration is broken..
Assignee | ||
Comment 1•9 years ago
|
||
I just loaded a page view in this condition, and I see that the LocalStorage has been deleted
35 export const loadCredentials = () => {
..
46 if (creds.certificate && creds.certificate.expiry < Date.now()) {
47 saveCredentials(null); // clear credentials
so this part cleared the credentials. That should have sent a credentials-changed message
13 window.dispatchEvent(new window.CustomEvent('credentials-changed', { detail: null }));
but perhaps there's an ordering issue here, where the listener for that event is not yet set up at the time?
Assignee | ||
Comment 2•9 years ago
|
||
I can confirm, the listening for `credentials-changed` only occurs after the credentials are deleted by the auth service.
Assignee | ||
Comment 3•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 4•9 years ago
|
||
Commit pushed to master at https://github.com/taskcluster/taskcluster-tools
https://github.com/taskcluster/taskcluster-tools/commit/607caa0d003a4eb262ef03ba529839d326c71fe6
Bug 1310035: display 'sign in' when credentials are expired at page load (#167)
Updated•6 years ago
|
Component: Tools → UI and Tools
You need to log in
before you can comment on or make changes to this bug.
Description
•