Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Avoid preserving HS url at logout #2340

Merged
merged 2 commits into from
Dec 11, 2018
Merged

Avoid preserving HS url at logout #2340

merged 2 commits into from
Dec 11, 2018

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Dec 10, 2018

When I was talking to Matthew about this the other day, we couldn't think of a
good reason why we should preserve the HS URL at logout. It introduces the
problem that, if a client is redirected after login as per MSC1730, and then
you log out, you'll then get a login screen for the wrong server.

So basically there's no reason to have an mx_hs_url/mx_is_url without an access
token, and we can remove the stuff which preserves it, and the stuff that
attempts to restore it.

When I was talking to Matthew about this the other day, we couldn't think of a
good reason why we should preserve the HS URL at logout. It introduces the
problem that, if a client is redirected after login as per MSC1730, and then
you log out, you'll then get a login screen for the wrong server.

So basically there's no reason to have an mx_hs_url/mx_is_url without an access
token, and we can remove the stuff which preserves it, and the stuff that
attempts to restore it.
@richvdh richvdh requested a review from a team December 10, 2018 14:50
@richvdh
Copy link
Member Author

richvdh commented Dec 10, 2018

well this seems to be failing an integ test which deliberately tests the thing I'm trying to change here.

If people agree that this is sane behaviour then I can investigate how to update the tests.

Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me, happy to merge once the tests are fixed 👍

richvdh added a commit to element-hq/element-web that referenced this pull request Dec 11, 2018
See the react-sdk PR for some context.
@bwindels bwindels merged commit 566e035 into develop Dec 11, 2018
bwindels added a commit to element-hq/element-web that referenced this pull request Dec 11, 2018
@richvdh richvdh deleted the rav/no_preserve_hs_url branch November 30, 2022 10:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants