summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/devices.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* check isort by travisKrombel2018-07-161-1/+1
|
* rename assert_params_in_request to assert_params_in_dictKrombel2018-07-131-2/+2
| | | | | | the method "assert_params_in_request" does handle dicts and not requests. A request body has to be parsed to json before this method can be used
* Use parse_{int,str} and assert from http.servletKrombel2018-07-131-12/+14
| | | | | | | parse_integer and parse_string can take a request and raise errors in case we have wrong or missing params. This PR tries to use them more to deduplicate some code and make it better readable
* run isortAmber Brown2018-07-091-0/+1
|
* Fix error when deleting devicesRichard van der Hoff2017-12-051-1/+1
| | | | This was introduced in d7ea8c4 / PR #2728
* Factor out a validate_user_via_ui_auth methodRichard van der Hoff2017-12-051-14/+12
| | | | Collect together all the places that validate a logged-in user via UI auth.
* Refactor UI auth implementationRichard van der Hoff2017-12-051-9/+5
| | | | | Instead of returning False when auth is incomplete, throw an exception which can be caught with a wrapper.
* Device deletion: check UI auth matches access tokenRichard van der Hoff2017-10-271-5/+8
| | | | (otherwise there's no point in the UI auth)
* register some /unstable endpoints in /r0 as wellKrombel2017-10-261-4/+3
|
* Implement _simple_delete_many_txn, use it to delete devicesLuke Barnard2017-03-131-11/+9
| | | | | | (But this doesn't implement the same for deleting access tokens or e2e keys. Also respond to code review.
* FlakeLuke Barnard2017-03-131-0/+2
|
* Implement delete_devices APILuke Barnard2017-03-131-0/+47
| | | | This implements the proposal here https://docs.google.com/document/d/1C-25Gqz3TXy2jIAoeOKxpNtmme0jI4g3yFGqv5GlAAk for deleting multiple devices at once in a single request.
* Allow guest access to endpoints for E2ERichard van der Hoff2016-11-251-3/+3
| | | | | Expose /devices, /keys, and /sendToDevice to guest users, so that they can use E2E.
* Handle delete device requests with no bodyRichard van der Hoff2016-10-121-2/+11
| | | | | We should probably return a 401 rather than a 400 for existing clients that don't know they have to do the UIA dance to delete a device.
* User-interactive auth on delete deviceRichard van der Hoff2016-10-121-5/+11
|
* Implement updating devicesRichard van der Hoff2016-07-261-7/+17
| | | | You can update the displayname of devices now.
* Implement deleting devicesRichard van der Hoff2016-07-261-0/+14
|
* Implement GET /device/{deviceId}Richard van der Hoff2016-07-211-0/+25
|
* GET /devices endpointRichard van der Hoff2016-07-201-0/+51
implement a GET /devices endpoint which lists all of the user's devices. It also returns the last IP where we saw that device, so there is some dancing to fish that out of the user_ips table.