Quentin Gliech
cc3a52b33d
Support OIDC backchannel logouts ( #11414 )
...
If configured an OIDC IdP can log a user's session out of
Synapse when they log out of the identity provider.
The IdP sends a request directly to Synapse (and must be
configured with an endpoint) when a user logs out.
2022-10-31 13:07:30 -04:00
Quentin Gliech
9192d74b0b
Refactor OIDC tests to better mimic an actual OIDC provider. ( #13910 )
...
This implements a fake OIDC server, which intercepts calls to the HTTP client.
Improves accuracy of tests by covering more internal methods.
One particular example was the ID token validation, which previously mocked.
This uncovered an incorrect dependency: Synapse actually requires at least
authlib 0.15.1, not 0.14.0.
2022-10-25 14:25:02 +00:00
Brendan Abolivier
be76cd8200
Allow admins to require a manual approval process before new accounts can be used (using MSC3866) ( #13556 )
2022-09-29 15:23:24 +02:00
Dirk Klimpel
e2ed1b7155
Use literals in place of `HTTPStatus` constants in tests ( #13463 )
2022-08-05 16:59:09 +02:00
Dirk Klimpel
efee345b45
Remove unnecessary `json.dumps` from tests ( #13303 )
2022-07-17 22:28:45 +01:00
David Teller
11f811470f
Uniformize spam-checker API, part 5: expand other spam-checker callbacks to return `Tuple[Codes, dict]` ( #13044 )
...
Signed-off-by: David Teller <davidt@element.io>
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2022-07-11 16:52:10 +00:00
reivilibre
c4cf916ed7
Default to `private` room visibility rather than `public` when a client does not specify one, according to spec. ( #12350 )
2022-04-01 15:55:09 +01:00
Dirk Klimpel
1901cb1d4a
Add type hints to `tests/rest/client` ( #12084 )
2022-02-28 17:47:37 +00:00
Dirk Klimpel
54e74cc15f
Add type hints to `tests/rest/client` ( #12072 )
2022-02-24 13:56:38 -05:00
Andrew Morgan
87f2005713
Add some tests for propagation of device list changes between local users ( #11972 )
2022-02-15 11:27:56 +00:00
reivilibre
833247553f
Allow specifying the application service-specific `user_id` parameter in the `join` test helper. ( #11616 )
2022-02-03 13:09:22 +00:00
David Robertson
2bb4bd1269
Test that bans win a join against a race when computing `/sync` response ( #11701 )
2022-01-07 16:43:21 +00:00
David Robertson
0dda1a7968
Misc typing fixes for tests, part 2 of N ( #11330 )
2021-11-16 10:41:35 +00:00
David Robertson
4c96ce396e
Misc typing fixes for `tests`, part 1 of N ( #11323 )
...
* Annotate HomeserverTestCase.servlets
* Correct annotation of federation_auth_origin
* Use AnyStr custom_headers instead of a Union
This allows (str, str) and (bytes, bytes).
This disallows (str, bytes) and (bytes, str)
* DomainSpecificString.SIGIL is a ClassVar
2021-11-12 15:50:54 +00:00
Rafael Gonçalves
0e16b418f6
Add knock information in admin exported data ( #11171 )
...
Signed-off-by: Rafael Goncalves <rafaelgoncalves@riseup.net>
2021-10-28 18:54:38 +01:00
AndrewFerr
30f0240401
Make is_public Optional[bool] for create_room_as test util ( #10951 ) ( #10963 )
...
Signed-off-by: Andrew Ferrazzutti <fair@miscworks.net>
2021-10-04 14:43:03 +00:00
Erik Johnston
50022cff96
Add reactor to `SynapseRequest` and fix up types. ( #10868 )
2021-09-24 11:01:25 +01:00
Aaron Raimist
6a751ff5e0
Allow sending a membership event to unban a user ( #10807 )
...
* Allow membership event to unban user
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-09-21 10:23:34 +00:00
David Robertson
ecd823d766
Flatten tests/rest/client/{v1,v2_alpha} too ( #10667 )
2021-08-20 17:50:44 +01:00