summary refs log tree commit diff
path: root/synapse/rest/client/v1/logout.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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