synapse/tests
Matthew Hodgson c0e0740bef add options to require an access_token to GET /profile and /publicRooms on CS API (#5083)
This commit adds two config options:

* `restrict_public_rooms_to_local_users`

Requires auth to fetch the public rooms directory through the CS API and disables fetching it through the federation API.

* `require_auth_for_profile_requests`

When set to `true`, requires that requests to `/profile` over the CS API are authenticated, and only returns the user's profile if the requester shares a room with the profile's owner, as per MSC1301.

MSC1301 also specifies a behaviour for federation (only returning the profile if the server asking for it shares a room with the profile's owner), but that's currently really non-trivial to do in a not too expensive way. Next step is writing down a MSC that allows a HS to specify which user sent the profile query. In this implementation, Synapse won't send a profile query over federation if it doesn't believe it already shares a room with the profile's owner, though.

Groups have been intentionally omitted from this commit.
2019-05-08 18:26:56 +01:00
..
api Enforce hs_disabled_message correctly 2019-03-19 11:30:54 +00:00
app Fix flake8 issues 2019-01-23 10:53:48 +02:00
appservice Run black. 2018-08-10 23:54:09 +10:00
config Neilj/fix threepid auth check (with tests) (#4474) 2019-04-01 17:42:18 +01:00
crypto Remove periods from copyright headers (#5046) 2019-04-11 17:08:13 +01:00
events Fix a number of flake8 errors 2018-10-24 10:39:03 +01:00
federation Batch up outgoing read-receipts to reduce federation traffic. (#4890) 2019-03-20 16:02:25 +00:00
handlers Add admin api for sending server_notices (#5121) 2019-05-02 11:59:16 +01:00
http Config option for verifying federation certificates (MSC 1711) (#4967) 2019-04-25 14:22:49 +01:00
push Add admin api for sending server_notices (#5121) 2019-05-02 11:59:16 +01:00
replication Fix sync bug when accepting invites (#4956) 2019-04-02 12:42:39 +01:00
rest add options to require an access_token to GET /profile and /publicRooms on CS API (#5083) 2019-05-08 18:26:56 +01:00
scripts Port register_new_matrix_user to Python 3 and add tests (#4085) 2018-10-26 22:05:22 +11:00
server_notices Add admin api for sending server_notices (#5121) 2019-05-02 11:59:16 +01:00
state Collect room-version variations into one place (#4969) 2019-04-01 10:24:38 +01:00
storage Add admin api for sending server_notices (#5121) 2019-05-02 11:59:16 +01:00
test_utils Enable configuring test log level via env var (#4506) 2019-01-29 12:07:00 +00:00
util Remove periods from copyright headers (#5046) 2019-04-11 17:08:13 +01:00
__init__.py Patch defer.inlineCallbacks to check logcontexts in tests (#4205) 2018-12-04 11:30:32 +01:00
patch_inline_callbacks.py Patch defer.inlineCallbacks to check logcontexts in tests (#4205) 2018-12-04 11:30:32 +01:00
server.py Fix sync bug when accepting invites (#4956) 2019-04-02 12:42:39 +01:00
test_distributor.py Run black. 2018-08-10 23:54:09 +10:00
test_event_auth.py Collect room-version variations into one place (#4969) 2019-04-01 10:24:38 +01:00
test_federation.py Fix some tests which leaked logcontexts 2018-11-19 17:07:01 +00:00
test_mau.py Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +00:00
test_metrics.py Fix test_metrics.py compatibility prometheus_client 0.5 2018-12-21 01:53:57 +01:00
test_preview.py Run black. 2018-08-10 23:54:09 +10:00
test_server.py Use native UPSERTs where possible (#4306) 2019-01-24 21:31:54 +11:00
test_state.py Merge pull request #5027 from matrix-org/babolivier/account_expiration 2019-04-09 17:02:41 +01:00
test_terms_auth.py Fix the terms UI auth tests 2018-11-15 23:00:28 -07:00
test_test_utils.py Run black. 2018-08-10 23:54:09 +10:00
test_types.py Factor SSO success handling out of CAS login (#4264) 2018-12-07 13:10:07 +01:00
test_visibility.py Collect room-version variations into one place (#4969) 2019-04-01 10:24:38 +01:00
unittest.py Remove the requirement to authenticate for /admin/server_version. (#5122) 2019-05-07 09:29:30 +01:00
utils.py Collect room-version variations into one place (#4969) 2019-04-01 10:24:38 +01:00