-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Device removal doesn't work #20292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This'll be a bug with your HS or the auth module not supporting fallback auth properly. Most clients will have no idea how to perform |
Isn't it a bug in Element, because it's picking the first auth flow it sees, and not the one it actually supports: #19605 |
Is definitely a bug on the HS. But yes Element could/should prefer a different flow, not that the spec mandates that. Closing in favour of #19605 but I do suggest you report it to the relevant backend project too. |
Well.. Isn't the point of custom auth providers that they all get registered with the homeserver and that they are reported as valid for use. When the homeserver tells you a bunch of auth flows are supported, why is it that Element picks the first one (that it doesn't understand) and goes to I don't see how this is a homeserver bug. The homeserver is merely listing all auth flows that it supports. It doesn't need to care who the caller is and what their capabilities are. It's on the caller to do the sensible thing with the data that it's been given. It's the same for logging in, by the way. The homeserver reports a few valid ways to log in and clients are supposed to pick the one that they support. If Element saw |
The homeserver bug is that the /fallback/ isn't working. As I said above;
That's what your issue, #19605 is about.
The spec doesn't state this. See spec:
Right now Element's implementation is poor, but still valid as per the spec. |
https://spec.matrix.org/v1.1/client-server-api/#fallback
The backend is out of spec, in other words, is bugged. |
Steps to reproduce
https://my_homeserver/_matrix/client/r0/auth/com.devture.shared_secret_auth/fallback/web?session=TpDJpMZAnnTXJHRGDQuQPlvs
returns{"errcode":"M_UNKNOWN","error":"Unknown auth stage type"}
Error getting device cross-signing info TypeError: can't access property "algorithms", e is null
Worth mentioning that I have set up https://github.com/devture/matrix-synapse-shared-secret-auth module.
Outcome
What did you expect?
Succesful removal
What happened instead?
Device cannot be removed
Operating system
Windows 10
Browser information
Firefox 96b5
URL for webapp
own
Application version
Element version: 1.9.8 Olm version: 3.2.8
Homeserver
own Synapse 1.49.0
Will you send logs?
No
The text was updated successfully, but these errors were encountered: