Skip to content
Snippets Groups Projects
Commit 3cca61e0 authored by Mark Haines's avatar Mark Haines
Browse files

Rename ClientID to ClientInfo since it is a pair of IDs rather than a single identifier

parent c18e5516
No related branches found
No related tags found
No related merge requests found
......@@ -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.")
......
......@@ -121,4 +121,4 @@ class StreamToken(
return StreamToken(**d)
ClientID = namedtuple("ClientID", ("device_id", "token_id"))
ClientInfo = namedtuple("ClientInfo", ("device_id", "token_id"))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment