MatrixSynapse/tests/util
Quentin Gliech fe1daad672
Move the "email unsubscribe" resource, refactor the macaroon generator & simplify the access token verification logic. (#12986)
This simplifies the access token verification logic by removing the `rights`
parameter which was only ever used for the unsubscribe link in email
notifications. The latter has been moved under the `/_synapse` namespace,
since it is not a standard API.

This also makes the email verification link more secure, by embedding the
app_id and pushkey in the macaroon and verifying it. This prevents the user
from tampering the query parameters of that unsubscribe link.

Macaroon generation is refactored:

- Centralised all macaroon generation and verification logic to the
  `MacaroonGenerator`
- Moved to `synapse.utils`
- Changed the constructor to require only a `Clock`, hostname, and a secret key
  (instead of a full `Homeserver`).
- Added tests for all methods.
2022-06-14 09:12:08 -04:00
..
caches Add cancellation support to `@cached` and `@cachedList` decorators (#12183) 2022-03-14 19:04:29 +00:00
__init__.py
test_async_helpers.py Immediately retry any requests that have backed off when a server comes back online. (#12500) 2022-05-10 10:39:54 +01:00
test_batching_queue.py
test_check_dependencies.py Try to detect borked package installations. (#12244) 2022-03-18 19:03:46 +00:00
test_dict_cache.py
test_expiring_cache.py Replace assertEquals and friends with non-deprecated versions. (#12092) 2022-02-28 07:12:29 -05:00
test_file_consumer.py
test_itertools.py
test_linearizer.py Fix edge case where a `Linearizer` could get stuck (#12358) 2022-04-05 17:19:16 +01:00
test_logcontext.py Replace assertEquals and friends with non-deprecated versions. (#12092) 2022-02-28 07:12:29 -05:00
test_logformatter.py
test_lrucache.py Add config flags to allow for cache auto-tuning (#12701) 2022-05-13 12:32:39 -07:00
test_macaroons.py Move the "email unsubscribe" resource, refactor the macaroon generator & simplify the access token verification logic. (#12986) 2022-06-14 09:12:08 -04:00
test_ratelimitutils.py
test_retryutils.py
test_rwlock.py Update docstrings for `ReadWriteLock` tests (#12354) 2022-04-05 16:54:40 +01:00
test_stream_change_cache.py
test_stringutils.py
test_threepids.py
test_treecache.py Replace assertEquals and friends with non-deprecated versions. (#12092) 2022-02-28 07:12:29 -05:00
test_wheel_timer.py