summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/devices.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Flatten the synapse.rest.client package (#10600)reivilibre2021-08-171-300/+0
|
* Always require users to re-authenticate for dangerous operations. (#10184)Patrick Cloke2021-06-161-0/+6
| | | | | | | Dangerous actions means deactivating an account, modifying an account password, or adding a 3PID. Other actions (deleting devices, uploading keys) can re-use the same UI auth session if ui_auth.session_timeout is configured.
* 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>`
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-5/+17
| | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version
* Kill off `HomeServer.get_ip_from_request()` (#9080)Richard van der Hoff2021-01-121-10/+2
| | | Homeserver.get_ip_from_request() used to be a bit more complicated, but now it is totally redundant. Let's get rid of it.
* Add support for MSC2697: Dehydrated devices (#8380)Hubert Chathi2020-10-071-0/+134
| | | | This allows a user to store an offline device on the server and then restore it at a subsequent login.
* Simplify super() calls to Python 3 syntax. (#8344)Patrick Cloke2020-09-181-3/+3
| | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py
* Support SAML in the user interactive authentication workflow. (#7102)Patrick Cloke2020-04-011-2/+10
|
* Validate that the session is not modified during UI-Auth (#7068)Patrick Cloke2020-03-261-2/+2
|
* Port rest.client.v2Erik Johnston2019-12-051-24/+17
|
* Remove unnecessary parentheses around return statements (#5931)Andrew Morgan2019-08-301-5/+5
| | | | | 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-5/+5
|
* Run Black. (#5482)Amber Brown2019-06-201-12/+7
|
* Unify v1 and v2 REST client APIs (#5226)Amber Brown2019-06-031-4/+4
|
* Drop support for v2_alpha API prefix (#5190)Richard van der Hoff2019-05-151-3/+3
|
* 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.