Add a module type for account validity (#9884)
This adds an API for third-party plugin modules to implement account validity, so they can provide this feature instead of Synapse. The module implementing the current behaviour for this feature can be found at https://github.com/matrix-org/synapse-email-account-validity. To allow for a smooth transition between the current feature and the new module, hooks have been added to the existing account validity endpoints to allow their behaviours to be overridden by a module.
Showing
- changelog.d/9884.feature 1 addition, 0 deletionschangelog.d/9884.feature
- docs/modules.md 41 additions, 6 deletionsdocs/modules.md
- docs/sample_config.yaml 0 additions, 85 deletionsdocs/sample_config.yaml
- synapse/api/auth.py 10 additions, 7 deletionssynapse/api/auth.py
- synapse/config/account_validity.py 15 additions, 87 deletionssynapse/config/account_validity.py
- synapse/handlers/account_validity.py 126 additions, 2 deletionssynapse/handlers/account_validity.py
- synapse/handlers/register.py 5 additions, 0 deletionssynapse/handlers/register.py
- synapse/module_api/__init__.py 209 additions, 10 deletionssynapse/module_api/__init__.py
- synapse/module_api/errors.py 5 additions, 1 deletionsynapse/module_api/errors.py
- synapse/push/pusherpool.py 8 additions, 16 deletionssynapse/push/pusherpool.py
- synapse/rest/admin/users.py 16 additions, 8 deletionssynapse/rest/admin/users.py
- synapse/rest/client/v2_alpha/account_validity.py 1 addition, 6 deletionssynapse/rest/client/v2_alpha/account_validity.py
- tests/test_state.py 1 addition, 0 deletionstests/test_state.py
Loading
Please register or sign in to comment