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
af7ed8e1
Commit
af7ed8e1
authored
7 years ago
by
dklug
Browse files
Options
Downloads
Patches
Plain Diff
Return 401 for invalid access_token on logout
Signed-off-by:
Duncan Klug
<
dklug@ucmerced.edu
>
parent
6619f047
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/rest/client/v1/logout.py
+4
-1
4 additions, 1 deletion
synapse/rest/client/v1/logout.py
with
4 additions
and
1 deletion
synapse/rest/client/v1/logout.py
+
4
−
1
View file @
af7ed8e1
...
...
@@ -44,7 +44,10 @@ class LogoutRestServlet(ClientV1RestServlet):
requester
=
yield
self
.
auth
.
get_user_by_req
(
request
)
except
AuthError
:
# this implies the access token has already been deleted.
pass
defer
.
returnValue
((
401
,
{
"
errcode
"
:
"
M_UNKNOWN_TOKEN
"
,
"
error
"
:
"
Access Token unknown or expired
"
}))
else
:
if
requester
.
device_id
is
None
:
# the acccess token wasn't associated with a device.
...
...
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