-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Need a way to allow non-SSO users to use Key Backup on SSO-using hosts #12844
Comments
@tadzik do you actually mean this API? I don't think the one you linked actually requires UI auth? synapse/synapse/rest/client/keys.py Lines 274 to 291 in b83bc5f
|
@richvdh in this case the user is registered with an admin API, with shared secret registration – which gives us the access_token in the response. @erikjohnston yeah, that looks about right – I may have mislinked things. |
I think that is probably fine, the only concern would be for servers that have changed from password to SSO, where this change will potentially show the password box for users that had signed up with a password. I don't think that is a big deal though. |
possibly the |
Description:
On a host with both SSO users and non-SSO (e.g. bots) coexisting, it's impossible to use Key Backup as the latter. If we disable password auth (which makes sense when using SSO), even if we use our non-SSO user with its access token, an auth check will still be performed when uploading keys to key backup – and that will fail due to no available auth flow (and a 401) since there is no auth flow that the bot user can use.
Code-wise we end up here when setting up Key Backup in Element, and then this gives us no available options.
The text was updated successfully, but these errors were encountered: