Skip to content

Soft logout only presents the first login flow #21099

@jryans

Description

@jryans

Steps to reproduce

  1. Login to an account on matrix.org
  2. Trigger a soft logout (perhaps via token refresh that is never refreshed as in Refresh tokens seem to cause auto-soft-logout when IndexedDB is missing #21098, or some other way)

Outcome

What did you expect?

I expected to at least have access to the password flow which I used when I logged in originally.

What happened instead?

The soft logout screen I received for this matrix.org test account looked like this:

I logged in with username and password, but only social login options are presented, so there's no way for me proceed here. Looking at the SoftLogout code, it appears we filter the login flows to only the first one for some reason...?

matrix.org currently responds with:

image

Since social logins are the first one listed, we only show that, even though I never used social login for this account.

Operating system

macOS

Browser information

Firefox 99 in private window

URL for webapp

develop.element.io

Application version

135f37e-react-78524bddcef7-js-e86d8861b961

Homeserver

matrix.org

Will you send logs?

No

Metadata

Metadata

Assignees

Labels

A-AuthenticationA-Soft-Logouthttps://github.com/element-hq/element-web/issues/10224O-UncommonMost users are unlikely to come across this or unexpected workflowS-CriticalPrevents work, causes data loss and/or has no workaroundT-DefectX-Regression

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions