summary refs log tree commit diff
path: root/synapse/federation/replication.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-11-07 15:35:53 +0000
committerErik Johnston <erik@matrix.org>2014-11-07 15:35:53 +0000
commit02c3b1c9e2afa27753e9ce898e5455b6489541b4 (patch)
tree48bda5021f9fce4d52aa0b70fe47ee6a1bc2be56 /synapse/federation/replication.py
parentImplement invite part of invite join dance (diff)
downloadsynapse-02c3b1c9e2afa27753e9ce898e5455b6489541b4.tar.xz
Add '/event_auth/' federation api
Diffstat (limited to 'synapse/federation/replication.py')
-rw-r--r--synapse/federation/replication.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/federation/replication.py b/synapse/federation/replication.py
index e358de942e..719bfcc42c 100644
--- a/synapse/federation/replication.py
+++ b/synapse/federation/replication.py
@@ -427,6 +427,11 @@ class ReplicationLayer(object):
         }))
 
     @defer.inlineCallbacks
+    def on_event_auth(self, origin, context, event_id):
+        auth_pdus = yield self.handler.on_event_auth(event_id)
+        defer.returnValue((200, [a.get_dict() for a in auth_pdus]))
+
+    @defer.inlineCallbacks
     def make_join(self, destination, context, user_id):
         pdu_dict = yield self.transport_layer.make_join(
             destination=destination,