Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
3cca61e0
Commit
3cca61e0
authored
10 years ago
by
Mark Haines
Browse files
Options
Downloads
Patches
Plain Diff
Rename ClientID to ClientInfo since it is a pair of IDs rather than a single identifier
parent
c18e5516
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
synapse/api/auth.py
+2
-2
2 additions, 2 deletions
synapse/api/auth.py
synapse/types.py
+1
-1
1 addition, 1 deletion
synapse/types.py
with
3 additions
and
3 deletions
synapse/api/auth.py
+
2
−
2
View file @
3cca61e0
...
...
@@ -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
,
ClientI
D
from
synapse.types
import
UserID
,
ClientI
nfo
import
logging
...
...
@@ -318,7 +318,7 @@ class Auth(object):
user_agent
=
user_agent
)
defer
.
returnValue
((
user
,
ClientI
D
(
device_id
,
token_id
)))
defer
.
returnValue
((
user
,
ClientI
nfo
(
device_id
,
token_id
)))
except
KeyError
:
raise
AuthError
(
403
,
"
Missing access token.
"
)
...
...
This diff is collapsed.
Click to expand it.
synapse/types.py
+
1
−
1
View file @
3cca61e0
...
...
@@ -121,4 +121,4 @@ class StreamToken(
return
StreamToken
(
**
d
)
ClientI
D
=
namedtuple
(
"
ClientI
D
"
,
(
"
device_id
"
,
"
token_id
"
))
ClientI
nfo
=
namedtuple
(
"
ClientI
nfo
"
,
(
"
device_id
"
,
"
token_id
"
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment