summary refs log tree commit diff
path: root/synapse/rest/client/v1/logout.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Flatten the synapse.rest.client package (#10600)reivilibre2021-08-171-72/+0
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Remove unused OPTIONS handlers. (#8621)Patrick Cloke2020-10-221-6/+0
| | | | The handling of OPTIONS requests was consolidated in #7534, but the endpoint specific handlers were not removed.
* Simplify super() calls to Python 3 syntax. (#8344)Patrick Cloke2020-09-181-2/+2
| | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py
* Allow expired accounts to logout (#7443)Andrew Morgan2020-05-141-3/+3
|
* Port rest/v1 to async/awaitErik Johnston2019-12-051-12/+8
|
* Remove unnecessary parentheses around return statements (#5931)Andrew Morgan2019-08-301-4/+4
| | | | | Python will return a tuple whether there are parentheses around the returned values or not. I'm just sick of my editor complaining about this all over the place :)
* Replace returnValue with return (#5736)Amber Brown2019-07-231-2/+2
|
* Run Black. (#5482)Amber Brown2019-06-201-1/+2
|
* Unify v1 and v2 REST client APIs (#5226)Amber Brown2019-06-031-9/+10
|
* LintAaron Raimist2019-05-291-2/+0
| | | | Signed-off-by: Aaron Raimist <aaron@raim.ist>
* Get rid of try exceptAaron Raimist2019-05-271-16/+9
| | | | Signed-off-by: Aaron Raimist <aaron@raim.ist>
* Show correct error when logging out and access token is missingAaron Raimist2019-05-241-4/+4
| | | | Signed-off-by: Aaron Raimist <aaron@raim.ist>
* Make auth & transactions more testable (#3499)Amber Brown2018-07-141-2/+1
|
* run isortAmber Brown2018-07-091-3/+2
|
* Return 401 for invalid access_token on logoutdklug2018-03-021-1/+4
| | | | Signed-off-by: Duncan Klug <dklug@ucmerced.edu>
* Delete devices in various logout situationsRichard van der Hoff2017-11-291-2/+25
| | | | | | | | | | | | | Make sure that we delete devices whenever a user is logged out due to any of the following situations: * /logout * /logout_all * change password * deactivate account (by the user or by an admin) * invalidate access token from a dynamic module Fixes #2672.
* Move access token deletion into auth handlerRichard van der Hoff2017-11-011-4/+4
| | | | | | | Also move duplicated deactivation code into the auth handler. I want to add some hooks when we deactivate an access token, so let's bring it all in here so that there's somewhere to put it.
* Add helper function for getting access_tokens from requestsMark Haines2016-09-091-8/+2
| | | | | | Rather than reimplementing the token parsing in the various places. This will make it easier to change the token parsing to allow access_tokens in HTTP headers.
* Implement logoutErik Johnston2016-03-111-0/+72