Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Federation authorization #12

Merged
merged 130 commits into from
Nov 11, 2014
Merged

Federation authorization #12

merged 130 commits into from
Nov 11, 2014

Conversation

erikjohnston
Copy link
Member

No description provided.

Mark Haines and others added 30 commits October 14, 2014 14:58
…ous PDUs rather than reusing the PDU content hashes
Conflicts:
	synapse/federation/replication.py
…on_authorization

Conflicts:
	synapse/federation/transport.py
	synapse/handlers/message.py
…deration_authorization

Conflicts:
	synapse/storage/__init__.py
NegativeMjark added a commit that referenced this pull request Nov 11, 2014
@NegativeMjark NegativeMjark merged commit a8ceeec into develop Nov 11, 2014
@erikjohnston erikjohnston deleted the federation_authorization branch January 14, 2015 13:57
babolivier pushed a commit that referenced this pull request Sep 1, 2021
The current `/user/<user_id>/info` API was useful in that it could be used by any user to lookup whether another user was deactivate or expired. However, it was impractical as it only allowed for a single lookup at once. Clients trying to use this API were met with speed issues as they tried to query this information for all users in a room.

This PR adds an equivalent CS and Federation API that takes a list of user IDs, and returning a mapping from user ID to info dictionary.

Note that the federation in this PR was a bit trickier than in the original #12 as we can no longer use a federation query, as those don't allow for JSON bodies - which we require to pass a list of user IDs. Instead we do the whole thing of adding a method to transport/client and transport/server.

This PR also adds unittests. The earlier PR used Sytest, presumably for testing across federation, but as this is Synapse-specific that felt a little gross. Unit tests for the deprecated endpoint have not been added.
lxndrbnsv added a commit to lxndrbnsv/synapse that referenced this pull request Dec 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants