This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
Unable to logout from Admin UI with an expired/invalid token #1257
Labels
bug
Something isn't working
Bug Description
On
fidesops:1.7.2
I have found that I cannot logout from the Admin UI when my token is already expired or invalid. When this occurs, you get stuck in a bad state where you can't use the UI (because your token is rejected), but you also can't log back in (because the existing token prevents using the /login route).There is at least two ways to cause this:
/logout
endpoint will throw a 403, not succeed, and not clear the local storage/logout
endpoint will throw a 403, not succeed, and not clear the local storageSteps to Reproduce
It's simple enough to reproduce an invalid token:
window.localStorage.setItem('auth.fidesops-admin-ui', '{"token":"invalid"}')
/logout
fails with a 500, and the invalid token is not cleared:/login
Expected behavior
I'd expect two things here that aren't happening:
The latter is less important as it's more of a QOL improvement, but the former is blocking usage of the Admin UI right now if you ever get timed out.
Screenshots
(see above)
Environment
The text was updated successfully, but these errors were encountered: