summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/tokenrefresh.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Simplify super() calls to Python 3 syntax. (#8344)Patrick Cloke2020-09-181-1/+1
| | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py
* Port rest.client.v2Erik Johnston2019-12-051-4/+1
|
* Run Black. (#5482)Amber Brown2019-06-201-0/+1
|
* Unify v1 and v2 REST client APIs (#5226)Amber Brown2019-06-031-2/+2
|
* Rip out more refresh_token codeRichard van der Hoff2016-11-301-23/+3
| | | | | | | | We might as well treat all refresh_tokens as invalid. Just return a 403 from /tokenrefresh, so that we don't have a load of dead, untestable code hanging around. Still TODO: removing the table from the schema.
* Add device_id support to /loginRichard van der Hoff2016-07-181-3/+7
| | | | | | | | | | | | | Add a 'devices' table to the storage, as well as a 'device_id' column to refresh_tokens. Allow the client to pass a device_id, and initial_device_display_name, to /login. If login is successful, then register the device in the devices table if it wasn't known already. If no device_id was supplied, make one up. Associate the device_id with the access token and refresh token, so that we can get at it again later. Ensure that the device_id is copied from the refresh token to the access_token when the token is refreshed.
* Split out the auth handlerDavid Baker2016-06-021-1/+1
|
* Add a parse_json_object functionMark Haines2016-03-091-3/+3
| | | | | to deduplicate all the copy+pasted _parse_json functions. Also document the parse_.* functions.
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Host /unstable and /r0 versions of r0 APIsDaniel Wagner-Hall2015-12-011-2/+2
|
* /tokenrefresh POST endpointDaniel Wagner-Hall2015-08-201-0/+56
This allows refresh tokens to be exchanged for (access_token, refresh_token). It also starts issuing them on login, though no clients currently interpret them.