You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#14634. Always prompt for which google account to use during
login. Avoids confusion over whether logout succeeded or not (especially
considering #14635)
This is caused by domain-by-domain CSRF tokens introduced in #14180. An unfortunate side effect is that the tokens available on non-auth pages are no longer able to validate requests to the auth/logout API.
Given the lack of apparent noise about this bug in our issues and zulip I suspect that this is not a common path for users, and that a fix along the lines of "require add one button click to go to the User page first before logging out is acceptable".
On the other hand, the risk of a user clicking on the broken Logout button and believing themselves to be logged out when seeing a 401: Unauthorized page (but actually still having logged-in state in their browser) raises this in my mind to a security bug rather than just a UX bug or an unfortunate user experience.
Therefore my proposal is:
To fix the bug as soon as possible
Accept an additional redirect in a user flow which is rarely exercised
To make the smallest number of potentially risky changes to the underlying security architecture
Therefore: Remove the broken "log out" link in page headers and replace with a Log out button on the auth[...]/users page which is guaranteed to have the correct CSRF token in state.
Fixes#14635. Logout is only possible from `auth` pages due to
per-subdomain CRSF tokens. Security/design thought process as documented
in a comment on the issue:
#14635 (comment)
What happened?
Reproduction steps -
Expected:
Version
Batch - 0.2.132
Relevant log output
No response
The text was updated successfully, but these errors were encountered: