synapse-product/synapse/rest/client/v2_alpha
Brendan Abolivier a4c3a361b7
Add rate-limiting on registration (#4735)
* Rate-limiting for registration

* Add unit test for registration rate limiting

* Add config parameters for rate limiting on auth endpoints

* Doc

* Fix doc of rate limiting function

Co-Authored-By: babolivier <contact@brendanabolivier.com>

* Incorporate review

* Fix config parsing

* Fix linting errors

* Set default config for auth rate limiting

* Fix tests

* Add changelog

* Advance reactor instead of mocked clock

* Move parameters to registration specific config and give them more sensible default values

* Remove unused config options

* Don't mock the rate limiter un MAU tests

* Rename _register_with_store into register_with_store

* Make CI happy

* Remove unused import

* Update sample config

* Fix ratelimiting test for py2

* Add non-guest test
2019-03-05 14:25:33 +00:00
..
__init__.py copyrights 2016-01-07 04:26:29 +00:00
_base.py rewrite based on PR feedback: 2018-01-19 15:33:55 +00:00
account_data.py Add GET account data routes (#4303) 2019-01-07 10:27:54 +00:00
account.py improve human readable error messages 2018-09-04 12:03:17 +01:00
auth.py switch from google.com to recaptcha.net for reCAPTCHA (#4731) 2019-02-25 11:15:36 -08:00
capabilities.py isort 2019-01-30 10:55:42 +00:00
devices.py check isort by travis 2018-07-16 13:57:33 +02:00
filter.py run isort 2018-07-09 16:09:20 +10:00
groups.py run isort 2018-07-09 16:09:20 +10:00
keys.py run isort 2018-07-09 16:09:20 +10:00
notifications.py run isort 2018-07-09 16:09:20 +10:00
openid.py run isort 2018-07-09 16:09:20 +10:00
read_marker.py run isort 2018-07-09 16:09:20 +10:00
receipts.py run isort 2018-07-09 16:09:20 +10:00
register.py Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +00:00
report_event.py rename assert_params_in_request to assert_params_in_dict 2018-07-13 21:53:01 +02:00
room_keys.py make sure version is in body and wrap in linearizer queue 2019-02-08 01:32:45 -05:00
room_upgrade_rest_servlet.py Address review comments 2018-10-26 17:10:30 +01:00
sendtodevice.py Make auth & transactions more testable (#3499) 2018-07-14 07:34:49 +10:00
sync.py Allow "unavailable" presence status for /sync (#4592) 2019-02-08 21:09:56 +00:00
tags.py run isort 2018-07-09 16:09:20 +10:00
thirdparty.py Port rest/ to Python 3 (#3823) 2018-09-12 20:41:31 +10:00
tokenrefresh.py Rip out more refresh_token code 2016-11-30 17:40:18 +00:00
user_directory.py run isort 2018-07-09 16:09:20 +10:00