matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

Feature request: Allow accounts to be deactivated when the user is removed from an external auth provider #5285

Open TheLastProject opened 5 years ago

TheLastProject commented 5 years ago

Description:

Currently, I'm using Synapse together with mxisd as identity server (which uses LDAP as backend). It would be great if Synapse could occasionally check if the users still exist according to the identiy server, so that accounts can be automatically deactivated. A similar idea to https://docs.nextcloud.com/server/15/admin_manual/configuration_user/user_auth_ldap_cleanup.html, but then for identity servers in general instead of explicitly LDAP.

richvdh commented 5 years ago

I think this is a duplicate of https://github.com/matrix-org/synapse/issues/4158?

TheLastProject commented 5 years ago

Hmm, I'd like the account completely disabled/deleted so it also doesn't show up in the directory anymore, but it's at very least similar, yes.

richvdh commented 5 years ago

Ah right, yes.

There's more than one way to implement this, and I'm not sure a periodic callout to the identity server is the right one, since it would only work with mxisd setups. A more general solution is needed for external authentication providers in general.