anonymousland-synapse/synapse
Richard van der Hoff 01333681bc
Preparatory refactoring of the SamlHandlerTestCase (#8938)
* move simple_async_mock to test_utils

... so that it can be re-used

* Remove references to `SamlHandler._map_saml_response_to_user` from tests

This method is going away, so we can no longer use it as a test point. Instead,
factor out a higher-level method which takes a SAML object, and verify correct
behaviour by mocking out `AuthHandler.complete_sso_login`.

* changelog
2020-12-15 20:56:10 +00:00
..
_scripts Strip trailing / from server_url in register_new_matrix_user (#8823) 2020-11-26 10:57:26 +00:00
api Honour AS ratelimit settings for /login requests (#8920) 2020-12-11 16:33:31 +00:00
app Fix deadlock on SIGHUP (#8918) 2020-12-10 16:56:05 +00:00
appservice Tie together matches_user_in_member_list and get_users_in_room caches (#8676) 2020-10-30 15:23:16 +00:00
config Various clean-ups to the logging context code (#8935) 2020-12-14 14:19:47 -05:00
crypto Apply an IP range blacklist to push and key revocation requests. (#8821) 2020-12-02 11:09:24 -05:00
events Allow spam-checker modules to be provide async methods. (#8890) 2020-12-11 14:05:15 -05:00
federation Allow spam-checker modules to be provide async methods. (#8890) 2020-12-11 14:05:15 -05:00
groups Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
handlers Preparatory refactoring of the SamlHandlerTestCase (#8938) 2020-12-15 20:56:10 +00:00
http Various clean-ups to the logging context code (#8935) 2020-12-14 14:19:47 -05:00
logging Various clean-ups to the logging context code (#8935) 2020-12-14 14:19:47 -05:00
metrics Various clean-ups to the logging context code (#8935) 2020-12-14 14:19:47 -05:00
module_api Add admin API for logging in as a user (#8617) 2020-11-17 10:51:25 +00:00
push Fix handling of stream tokens for push. (#8943) 2020-12-15 10:41:34 -05:00
replication Various clean-ups to the logging context code (#8935) 2020-12-14 14:19:47 -05:00
res/templates Include a simple message in email notifications that include encrypted content (#8545) 2020-10-19 09:12:39 -04:00
rest Allow spam-checker modules to be provide async methods. (#8890) 2020-12-11 14:05:15 -05:00
server_notices Add admin API for logging in as a user (#8617) 2020-11-17 10:51:25 +00:00
spam_checker_api Combine SpamCheckerApi with the more generic ModuleApi. (#8464) 2020-10-07 12:03:26 +01:00
state Pass room_id to get_auth_chain_difference (#8879) 2020-12-04 15:52:49 +00:00
static Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
storage Fix handling of stream tokens for push. (#8943) 2020-12-15 10:41:34 -05:00
streams Make token serializing/deserializing async (#8427) 2020-09-30 20:29:19 +01:00
util Allow spam-checker modules to be provide async methods. (#8890) 2020-12-11 14:05:15 -05:00
__init__.py 1.24.0 2020-12-09 11:07:24 +00:00
event_auth.py Ensure that event.redacts is the proper type before handling it (#8457) 2020-10-05 10:24:17 -04:00
notifier.py Don't pull event from DB when handling replication traffic. (#8669) 2020-10-28 12:11:45 +00:00
python_dependencies.py Fix installing pysaml2 on Python 3.5. (#8898) 2020-12-08 13:41:25 -05:00
secrets.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
server.py Allow spam-checker modules to be provide async methods. (#8890) 2020-12-11 14:05:15 -05:00
types.py Improve error checking for OIDC/SAML mapping providers (#8774) 2020-11-19 14:25:17 -05:00
visibility.py Do not assume that account data is of the correct form. (#8454) 2020-10-05 09:28:05 -04:00