Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Ley
synapse
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
Branches
Branches containing commit
Tags
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
...
@@ -21,7 +21,7 @@ from synapse.api.constants import EventTypes, Membership, JoinRules
from
synapse.api.errors
import
AuthError
,
StoreError
,
Codes
,
SynapseError
from
synapse.api.errors
import
AuthError
,
StoreError
,
Codes
,
SynapseError
from
synapse.util.logutils
import
log_function
from
synapse.util.logutils
import
log_function
from
synapse.util.async
import
run_on_reactor
from
synapse.util.async
import
run_on_reactor
from
synapse.types
import
UserID
,
ClientI
D
from
synapse.types
import
UserID
,
ClientI
nfo
import
logging
import
logging
...
@@ -318,7 +318,7 @@ class Auth(object):
...
@@ -318,7 +318,7 @@ class Auth(object):
user_agent
=
user_agent
user_agent
=
user_agent
)
)
defer
.
returnValue
((
user
,
ClientI
D
(
device_id
,
token_id
)))
defer
.
returnValue
((
user
,
ClientI
nfo
(
device_id
,
token_id
)))
except
KeyError
:
except
KeyError
:
raise
AuthError
(
403
,
"
Missing access token.
"
)
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(
...
@@ -121,4 +121,4 @@ class StreamToken(
return
StreamToken
(
**
d
)
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