summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-01-28 17:16:12 +0000
committerMark Haines <mark.haines@matrix.org>2015-01-28 17:16:12 +0000
commit3cca61e006d7e69b6643721c01ab7d81a8c2f373 (patch)
tree0514b4f1b6c7ab6c0935be218ee04e2ab4d63daa /synapse/api
parentAdd a : to the doc string after the type of the return value (diff)
downloadsynapse-3cca61e006d7e69b6643721c01ab7d81a8c2f373.tar.xz
Rename ClientID to ClientInfo since it is a pair of IDs rather than a single identifier
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/auth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index f08cb76159..9c03024512 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -21,7 +21,7 @@ from synapse.api.constants import EventTypes, Membership, JoinRules
 from synapse.api.errors import AuthError, StoreError, Codes, SynapseError
 from synapse.util.logutils import log_function
 from synapse.util.async import run_on_reactor
-from synapse.types import UserID, ClientID
+from synapse.types import UserID, ClientInfo
 
 import logging
 
@@ -318,7 +318,7 @@ class Auth(object):
                     user_agent=user_agent
                 )
 
-            defer.returnValue((user, ClientID(device_id, token_id)))
+            defer.returnValue((user, ClientInfo(device_id, token_id)))
         except KeyError:
             raise AuthError(403, "Missing access token.")