summary refs log tree commit diff
path: root/synapse/federation/transport/server.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-05-31 12:00:54 +0100
committerDavid Baker <dave@matrix.org>2016-05-31 12:00:54 +0100
commit70ecb415f553e5de86833034ce184a8a905b7ed5 (patch)
tree45488c756826b2312f4a21a0eafb35ca5f07d2a3 /synapse/federation/transport/server.py
parentAdd federation room list servlet (diff)
downloadsynapse-70ecb415f553e5de86833034ce184a8a905b7ed5.tar.xz
Fix c+p fail
Diffstat (limited to 'synapse/federation/transport/server.py')
-rw-r--r--synapse/federation/transport/server.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/synapse/federation/transport/server.py b/synapse/federation/transport/server.py
index b82f72fd57..f23c02efde 100644
--- a/synapse/federation/transport/server.py
+++ b/synapse/federation/transport/server.py
@@ -530,23 +530,6 @@ class PublicRoomList(BaseFederationServlet):
         data = yield self.room_list_handler.get_public_room_list()
         defer.returnValue((200, data))
 
-        token = parse_string(request, "access_token")
-        if token is None:
-            defer.returnValue((401, {
-                "errcode": "M_MISSING_TOKEN", "error": "Access Token required"
-            }))
-            return
-
-        user_id = yield self.handler.on_openid_userinfo(token)
-
-        if user_id is None:
-            defer.returnValue((401, {
-                "errcode": "M_UNKNOWN_TOKEN",
-                "error": "Access Token unknown or expired"
-            }))
-
-        defer.returnValue((200, {"sub": user_id}))
-
     # Avoid doing remote HS authorization checks which are done by default by
     # BaseFederationServlet.
     def _wrap(self, code):