diff options
author | Erik Johnston <erik@matrix.org> | 2014-11-10 13:37:24 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-11-10 13:37:24 +0000 |
commit | 003668cfaadc2e96fab0127d7c563eb4b17e0619 (patch) | |
tree | c7719ec91cda7b516f835ff96fad47199edd5055 /synapse/federation/transport.py | |
parent | Fix backfill to work. Add auth to backfill request (diff) | |
download | synapse-003668cfaadc2e96fab0127d7c563eb4b17e0619.tar.xz |
Add auth to the various server-server APIs
Diffstat (limited to 'synapse/federation/transport.py')
-rw-r--r-- | synapse/federation/transport.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/federation/transport.py b/synapse/federation/transport.py index 92a1f4ce17..d84a44c211 100644 --- a/synapse/federation/transport.py +++ b/synapse/federation/transport.py @@ -390,7 +390,7 @@ class TransportLayer(object): re.compile("^" + PREFIX + "/event/([^/]*)/$"), self._with_authentication( lambda origin, content, query, event_id: - handler.on_pdu_request(event_id) + handler.on_pdu_request(origin, event_id) ) ) @@ -401,6 +401,7 @@ class TransportLayer(object): self._with_authentication( lambda origin, content, query, context: handler.on_context_state_request( + origin, context, query.get("event_id", [None])[0], ) |