summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2016-08-18 14:06:02 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2016-08-18 14:06:02 +0100
commit38565827418b71e12b3ff37e1482ff71ffe170d9 (patch)
tree0bd730658c8dec9472f62bbd2a39ce2fe1e82835 /synapse/rest
parentExtend individual list results into the main return list, don't append (diff)
downloadsynapse-38565827418b71e12b3ff37e1482ff71ffe170d9.tar.xz
Ensure that 3PU lookup request fields actually get passed in
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v2_alpha/thirdparty.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/thirdparty.py b/synapse/rest/client/v2_alpha/thirdparty.py

index 0180b73e9f..4b2a93f1bb 100644 --- a/synapse/rest/client/v2_alpha/thirdparty.py +++ b/synapse/rest/client/v2_alpha/thirdparty.py
@@ -35,7 +35,11 @@ class ThirdPartyUserServlet(RestServlet): @defer.inlineCallbacks def on_GET(self, request, protocol): - fields = {} # TODO + fields = request.args + del fields["access_token"] + + # TODO(paul): Some type checking on the request args might be nice + # They should probably all be strings results = yield self.appservice_handler.query_3pu(protocol, fields) defer.returnValue((200, results))