-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Return m.change_password enabled:false if local database not used for authentication #9456
Comments
This seems to be confusing a few different items:
So, I guess I'm unsure if you're asking about password resets or logins or something else -- could you provide a bit more description of what is happening? |
Sorry for the confusion. I'll try to explain a bit better. My overall aim is that my users, who previously used credentials stored in the Synapse database but now all sign on via SSO, no longer see any UI elements that have anything to do with the password that is (still) present in the Synapse database. The credentials (still) in the Synapse database are no longer used since I set In Element-web config., there are a couple of configuration settings in Element's
These work as expected. All good. An additional UI feature in Element-web / desktop which I would like to eliminate is the "Set a new account password" area in the settings, after logging in, found under All Settings -> General. Since There is no "UIFeatures" setting in Element to control this, apparently. Instead, this is shown by the client whenever the client receives If I manually remove the old password hashes from the database, then I can I achieve what I want - the "Set a new account password" area in the Element-web settings is gone for a user with no password hash. However, given that there is a The feature request is that Hope that's more understandable. |
This sounds reasonable, yes. 👍 |
Excellent! Thank you for fixing this. |
Description:
I have moved my users to SSO via OIDC. The user accounts previously existed on synapse and I do not want the users to be confused by any remnants of the native synapse account. I have therefore disabled local passwords in the password_config section of synapse's homeserver.yaml -
enabled: false
in addition to configuring the oidc_provider.However, when a user logs in to synapse from element-web or element-desktop, they are still shown UI elements for changing their (local synapse) password. Trying to do this leads to an error.
From element-hq/element-web#16499, I learned that the clients are responding to the capabilities passed by synapse - in this case because they receive
enabled: true
for the parameterm.change_password
in their capabilities query.From the Synapse Admins room on matrix, I learned that
enabled:true
is sent whenever there is a password hash present in the database (which in my case there is, as the users previously authenticated against the local DB) - see hereThe feature request is that
enabled:false
is sent for the capabilitym.change_password
whenever the config option password_config.enabled is set tofalse
in homeserver.yaml.The text was updated successfully, but these errors were encountered: