Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 1 | -12/+12 |
| | | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733 | ||||
* | Remove the 'password_hash' from the Users Admin API endpoint response ↵ | Andrew Morgan | 2022-01-14 | 1 | -7/+6 |
| | | | | dictionary (#11576) | ||||
* | Add admin API to get users' account data (#11664) | Dirk Klimpel | 2022-01-05 | 1 | -0/+30 |
| | | | Co-authored-by: reivilibre <olivier@librepush.net> | ||||
* | Clean up `synapse.rest.admin` (#11535) | Dirk Klimpel | 2021-12-08 | 1 | -27/+24 |
| | |||||
* | Convert status codes to `HTTPStatus` in `synapse.rest.admin` (#11452) | Dirk Klimpel | 2021-11-29 | 1 | -62/+111 |
| | |||||
* | Rename `get_access_token_for_user_id` method to ↵ | reivilibre | 2021-11-17 | 1 | -1/+1 |
| | | | | `create_access_token_for_user_id` (#11369) | ||||
* | Add ability to un-shadow-ban via the admin API. (#11347) | Patrick Cloke | 2021-11-16 | 1 | -2/+22 |
| | |||||
* | Enable changing user type via users admin API (#11174) | Jason Robinson | 2021-10-26 | 1 | -0/+3 |
| | | | | | | | | Users admin API can now also modify user type in addition to allowing it to be set on user creation. Signed-off-by: Jason Robinson <jasonr@matrix.org> Co-authored-by: Brendan Abolivier <babolivier@matrix.org> | ||||
* | Fix setting a user's external_id via the admin API returns 500 and deletes ↵ | Dirk Klimpel | 2021-10-21 | 1 | -29/+18 |
| | | | | | users existing external mappings if that external ID is already mapped (#11051) Fixes #10846 | ||||
* | Use direct references for configuration variables (part 7). (#10959) | Patrick Cloke | 2021-10-04 | 1 | -2/+2 |
| | |||||
* | Use direct references for some configuration variables (part 3) (#10885) | Patrick Cloke | 2021-09-23 | 1 | -2/+2 |
| | | | | | | | | This avoids the overhead of searching through the various configuration classes by directly referencing the class that the attributes are in. It also improves type hints since mypy can now resolve the types of the configuration variables. | ||||
* | Add missing type hints to non-client REST servlets. (#10817) | Patrick Cloke | 2021-09-15 | 1 | -1/+1 |
| | | | | Including admin, consent, key, synapse, and media. All REST servlets (the synapse.rest module) now require typed method definitions. | ||||
* | Remove not needed database updates in modify user admin API (#10627) | Dirk Klimpel | 2021-08-19 | 1 | -20/+35 |
| | |||||
* | Mount /_synapse/admin/v1/users/{userId}/media admin API on media workers ↵ | Andrew Morgan | 2021-08-18 | 1 | -160/+0 |
| | | | | | only (#10628) Co-authored-by: Patrick Cloke <patrickc@matrix.org> | ||||
* | Flatten the synapse.rest.client package (#10600) | reivilibre | 2021-08-17 | 1 | -2/+2 |
| | |||||
* | Allow to edit `external_ids` by Edit User admin API (#10598) | Dirk Klimpel | 2021-08-17 | 1 | -48/+91 |
| | | | Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Admin API to delete media for a specific user (#10558) | Dirk Klimpel | 2021-08-11 | 1 | -6/+74 |
| | |||||
* | Add `creation_ts` to list users admin API (#10448) | Dirk Klimpel | 2021-07-22 | 1 | -0/+2 |
| | | | Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Add a return type to parse_string. (#10438) | Patrick Cloke | 2021-07-21 | 1 | -2/+2 |
| | | | | And set the required attribute in a few places which will error if a parameter is not provided. | ||||
* | Use inline type hints in `handlers/` and `rest/`. (#10382) | Jonathan de Jong | 2021-07-16 | 1 | -1/+1 |
| | |||||
* | Add a module type for account validity (#9884) | Brendan Abolivier | 2021-07-16 | 1 | -8/+16 |
| | | | | | This adds an API for third-party plugin modules to implement account validity, so they can provide this feature instead of Synapse. The module implementing the current behaviour for this feature can be found at https://github.com/matrix-org/synapse-email-account-validity. To allow for a smooth transition between the current feature and the new module, hooks have been added to the existing account validity endpoints to allow their behaviours to be overridden by a module. | ||||
* | Add missing type hints to the admin API servlets (#10105) | Dirk Klimpel | 2021-06-07 | 1 | -10/+5 |
| | |||||
* | Remove various bits of compatibility code for Python <3.6 (#9879) | Andrew Morgan | 2021-04-27 | 1 | -1/+2 |
| | | | I went through and removed a bunch of cruft that was lying around for compatibility with old Python versions. This PR also will now prevent Synapse from starting unless you're running Python 3.6+. | ||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -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>` | ||||
* | Add an admin API to manage ratelimit for a specific user (#9648) | Dirk Klimpel | 2021-04-13 | 1 | -0/+111 |
| | |||||
* | Remove old admin API `GET /_synapse/admin/v1/users/<user_id>` (#9401) | Dirk Klimpel | 2021-04-09 | 1 | -23/+0 |
| | | | | | | | | | | | | | Related: #8334 Deprecated in: #9429 - Synapse 1.28.0 (2021-02-25) `GET /_synapse/admin/v1/users/<user_id>` has no - unit tests - documentation API in v2 is available (#5925 - 12/2019, v1.7.0). API is misleading. It expects `user_id` and returns a list of all users. Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Add `order_by` to list user admin API (#9691) | Dirk Klimpel | 2021-04-01 | 1 | -1/+20 |
| | |||||
* | Make it possible to use dmypy (#9692) | Erik Johnston | 2021-03-26 | 1 | -0/+3 |
| | | | | | | | | | Running `dmypy run` will do a `mypy` check while spinning up a daemon that makes rerunning `dmypy run` a lot faster. `dmypy` doesn't support `follow_imports = silent` and has `local_partial_types` enabled, so this PR enables those options and fixes the issues that were newly raised. Note that `local_partial_types` will be enabled by default in upcoming mypy releases. | ||||
* | Consistently check whether a password may be set for a user. (#9636) | Dirk Klimpel | 2021-03-18 | 1 | -1/+1 |
| | |||||
* | Re-Activating account when local passwords are disabled (#9587) | Dirk Klimpel | 2021-03-11 | 1 | -1/+4 |
| | | | Fixes: #8393 | ||||
* | Add type hints to user admin API. (#9521) | Dirk Klimpel | 2021-03-03 | 1 | -29/+56 |
| | |||||
* | Add an `order_by` field to list users' media admin API. (#8978) | Dirk Klimpel | 2021-02-22 | 1 | -1/+27 |
| | |||||
* | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 1 | -1/+1 |
| | | | | | | | - 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 | ||||
* | Fix some typos. | Patrick Cloke | 2021-02-12 | 1 | -1/+1 |
| | |||||
* | Add an admin API for shadow-banning users. (#9209) | Patrick Cloke | 2021-01-25 | 1 | -0/+36 |
| | | | | | | | | | | This expands the current shadow-banning feature to be usable via the admin API and adds documentation for it. A shadow-banned users receives successful responses to their client-server API requests, but the events are not propagated into rooms. Shadow-banning a user should be used as a tool of last resort and may lead to confusing or broken behaviour for the client. | ||||
* | Add tests for List Users Admin API (#9045) | Dirk Klimpel | 2021-01-21 | 1 | -3/+18 |
| | |||||
* | Remove user's avatar URL and displayname when deactivated. (#8932) | Dirk Klimpel | 2021-01-12 | 1 | -7/+15 |
| | | | This only applies if the user's data is to be erased. | ||||
* | Also support remote users on the joined_rooms admin API. (#8948) | David Teller | 2021-01-11 | 1 | -7/+0 |
| | | | | For remote users, only the rooms which the server knows about are returned. Local users have all of their joined rooms returned. | ||||
* | Convert internal pusher dicts to attrs classes. (#8940) | Patrick Cloke | 2020-12-16 | 1 | -15/+1 |
| | | | This improves type hinting and should use less memory. | ||||
* | Call set_avatar_url with target_user, not user_id (#8872) | Will Hunt | 2020-12-07 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | * Call set_avatar_url with target_user, not user_id Fixes https://github.com/matrix-org/synapse/issues/8871 * Create 8872.bugfix * Update synapse/rest/admin/users.py Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> * Testing * Update changelog.d/8872.bugfix Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | ||||
* | Add additional validation for the admin register endpoint. (#8837) | David Florness | 2020-12-02 | 1 | -0/+3 |
| | | | Raise a proper 400 error if the `mac` field is missing. | ||||
* | Remove deprecated `/_matrix/client/*/admin` endpoints (#8785) | Dirk Klimpel | 2020-11-25 | 1 | -10/+15 |
| | | | These are now only available via `/_synapse/admin/v1`. | ||||
* | Add admin API for logging in as a user (#8617) | Erik Johnston | 2020-11-17 | 1 | -1/+53 |
| | |||||
* | Add `displayname` to Shared-Secret Registration for admins (#8722) | Dirk Klimpel | 2020-11-05 | 1 | -0/+2 |
| | | | Add `displayname` to Shared-Secret Registration for admins to `POST /_synapse/admin/v1/register` | ||||
* | Add an admin APIs to allow server admins to list users' pushers (#8610) | Dirk Klimpel | 2020-10-28 | 1 | -0/+52 |
| | | | Add an admin API `GET /_synapse/admin/v1/users/<user_id>/pushers` like https://matrix.org/docs/spec/client_server/latest#get-matrix-client-r0-pushers | ||||
* | Add admin API to list users' local media (#8647) | Dirk Klimpel | 2020-10-27 | 1 | -1/+66 |
| | | | Add admin API `GET /_synapse/admin/v1/users/<user_id>/media` to get information of users' uploaded files. | ||||
* | Fix a bug in the joined_rooms admin API (#8643) | Dirk Klimpel | 2020-10-26 | 1 | -3/+4 |
| | | | | If the user was not in any rooms then the API returned the same error as if the user did not exist. | ||||
* | Remove the deprecated Handlers object (#8494) | Patrick Cloke | 2020-10-09 | 1 | -7/+6 |
| | | | All handlers now available via get_*_handler() methods on the HomeServer. | ||||
* | Admin API for querying rooms where a user is a member (#8306) | Dirk Klimpel | 2020-09-18 | 1 | -0/+26 |
| | | | | Add a new admin API `GET /_synapse/admin/v1/users/<user_id>/joined_rooms` to list all rooms where a user is a member. | ||||
* | Use admin_patterns for all admin APIs. (#8331) | Patrick Cloke | 2020-09-17 | 1 | -4/+4 |
| | | | This reduces duplication of the admin prefix in regular expressions. | ||||
* | Search in columns 'name' and 'displayname' in the admin users endpoint (#7377) | Manuel Stahl | 2020-08-25 | 1 | -1/+3 |
| | | | | | * Search in columns 'name' and 'displayname' in the admin users endpoint Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de> | ||||
* | Allow accounts to be re-activated from the admin APIs. (#7847) | Patrick Cloke | 2020-07-15 | 1 | -1/+9 |
| | |||||
* | Replace all remaining six usage with native Python 3 equivalents (#7704) | Dagfinn Ilmari Mannsåker | 2020-06-16 | 1 | -14/+6 |
| | |||||
* | Allow new users to be registered via the admin API even if the monthly ↵ | Dirk Klimpel | 2020-06-05 | 1 | -0/+2 |
| | | | | active user limit has been reached (#7263) | ||||
* | Email notifications for new users when creating via the Admin API. (#7267) | Dirk Klimpel | 2020-06-01 | 1 | -0/+16 |
| | |||||
* | Hash passwords earlier in the password reset process (#7538) | Patrick Cloke | 2020-05-20 | 1 | -2/+11 |
| | | | | This now matches the logic of the registration process as modified in 56db0b1365965c02ff539193e26c333b7f70d101 / #7523. | ||||
* | Hash passwords earlier in the registration process (#7523) | Patrick Cloke | 2020-05-18 | 1 | -15/+15 |
| | |||||
* | Return total number of users and profile attributes in admin users endpoint ↵ | Manuel Stahl | 2020-04-28 | 1 | -4/+4 |
| | | | | | (#6881) Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de> | ||||
* | Add an option to the set password API to choose whether to logout other ↵ | Patrick Cloke | 2020-03-18 | 1 | -2/+4 |
| | | | | devices. (#7085) | ||||
* | Fixed set a user as an admin with the new API (#6928) | Dirk Klimpel | 2020-02-28 | 1 | -4/+2 |
| | | | Fix #6910 | ||||
* | Ensure 'deactivated' parameter is a boolean on user admin API, Fix error ↵ | Andrew Morgan | 2020-02-26 | 1 | -4/+7 |
| | | | | handling of call to deactivate user (#6990) | ||||
* | Return a 404 for admin api user lookup if user not found (#6901) | Andrew Morgan | 2020-02-12 | 1 | -1/+4 |
| | |||||
* | Admin api to add an email address (#6789) | Dirk Klimpel | 2020-02-07 | 1 | -0/+39 |
| | |||||
* | Allow URL-encoded user IDs on user admin api paths (#6825) | Andrew Morgan | 2020-02-03 | 1 | -2/+2 |
| | |||||
* | Minor fixes to user admin api (#6761) | Richard van der Hoff | 2020-01-23 | 1 | -9/+5 |
| | | | | * don't insist on a password (this is valid if you have an SSO login) * fix reference to undefined `requester` | ||||
* | Remove unnecessary abstractions in admin handler (#6751) | Andrew Morgan | 2020-01-22 | 1 | -10/+9 |
| | |||||
* | Fixup synapse.rest to pass mypy (#6732) | Erik Johnston | 2020-01-20 | 1 | -11/+12 |
| | |||||
* | Fix changing password via user admin API. (#6730) | Erik Johnston | 2020-01-20 | 1 | -2/+2 |
| | |||||
* | Allow admin users to create or modify users without a shared secret (#6495) | Manuel Stahl | 2020-01-09 | 1 | -0/+142 |
| | | | Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de> | ||||
* | Replace /admin/v1/users_paginate endpoint with /admin/v2/users (#5925) | Manuel Stahl | 2019-12-05 | 1 | -54/+29 |
| | |||||
* | Move admin endpoints into separate files (#6308) | Manuel Stahl | 2019-11-20 | 1 | -2/+404 |
| | |||||
* | Port synaps/rest/client/users.py to async/await | Erik Johnston | 2019-10-11 | 1 | -11/+7 |
| | |||||
* | Remove unnecessary parentheses around return statements (#5931) | Andrew Morgan | 2019-08-30 | 1 | -2/+2 |
| | | | | | 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 :) | ||||
* | Add GET method to admin API /users/@user:dom/admin | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -8/+32 |
| | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
* | Add Admin API capability to set adminship of a user (#5878) | reivilibre | 2019-08-27 | 1 | -0/+76 |
Admin API: Set adminship of a user |