summary refs log tree commit diff
path: root/docs/sphinx/synapse.api.handlers.rst (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-12-05Factor out a validate_user_via_ui_auth methodRichard van der Hoff3-74/+102
Collect together all the places that validate a logged-in user via UI auth.
2017-12-05Refactor UI auth implementationRichard van der Hoff7-48/+103
Instead of returning False when auth is incomplete, throw an exception which can be caught with a wrapper.
2017-11-29Delete devices in various logout situationsRichard van der Hoff5-5/+75
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.
2017-11-29Move set_password into its own handlerRichard van der Hoff6-19/+58
Non-functional refactoring to move set_password. This means that we'll be able to properly deactivate devices and access tokens without introducing a dependency loop.
2017-11-29Move deactivate_account into its own handlerRichard van der Hoff6-22/+61
Non-functional refactoring to move deactivate_account. This means that we'll be able to properly deactivate devices and access tokens without introducing a dependency loop.
2017-11-29Remove pushers when deleting access tokensRichard van der Hoff3-18/+32
Whenever an access token is invalidated, we should remove the associated pushers.
2017-11-29Fix 500 when joining matrix-devRichard van der Hoff1-3/+10
matrix-dev has an event (`$/6ANj/9QWQyd71N6DpRQPf+SDUu11+HVMeKSpMzBCwM:zemos.net`) which has no `hashes` member. Check for missing `hashes` element in events.
2017-11-29Improve comments on get_user_by_access_tokenRichard van der Hoff1-1/+5
because I have to reverse-engineer this every time.
2017-11-28Clear logcontext before starting fed txn queue runnerRichard van der Hoff2-9/+18
These processes take a long time compared to the request, so there is lots of "Entering|Restoring dead context" in the logs. Let's try to shut it up a bit.
2017-11-28federation_client script: Support for posting contentRichard van der Hoff1-8/+34
2017-11-28Allow guest access to group APIs for readingLuke Barnard1-11/+11
2017-11-27Improve tracebacks on exceptionsRichard van der Hoff1-3/+9
Use failure.Failure to recover our failure, which will give us a useful stacktrace, unlike the rethrown exception.
2017-11-27Avoid retrying forever on IntegrityErrorRichard van der Hoff1-0/+7
2017-11-24Fix error handling on dns lookupRichard van der Hoff1-2/+4
pass the right arguments to the errback handler Fixes "TypeError('eb() takes exactly 2 arguments (1 given)',)"
2017-11-24Add a comment which might save some confusionRichard van der Hoff1-0/+1
2017-11-24Remove dead sync_callbackRichard van der Hoff1-2/+0
This is never used; let's remove it to stop confusing things.
2017-11-23Fix some logcontext leaks in replication resourceRichard van der Hoff1-2/+4
The @measure_func annotations rely on the wrapped function respecting the logcontext rules. Add the necessary yields to make this work.
2017-11-23Fix OPTIONS on preview_urlRichard van der Hoff1-1/+5
Fixes #2706
2017-11-22fix sql failsRichard van der Hoff1-1/+1
2017-11-22Check database in has_completed_background_updatesRichard van der Hoff3-12/+33
so that the right thing happens on workers.
2017-11-22Add config option to disable media_repo on main synapseRichard van der Hoff4-9/+30
... to stop us doing the cache cleanup jobs on the master.
2017-11-22Build MediaRepositoryResource as a homeserver dependencyRichard van der Hoff4-5/+19
This avoids the scenario where we have four different PreviewUrlResources configured on a single app, each of which have their own caches and cache clearing jobs.
2017-11-21Improve documentation of workersRichard van der Hoff1-21/+133
Fixes https://github.com/matrix-org/synapse/issues/2554
2017-11-21sanity checksMatthew Hodgson1-1/+4
2017-11-21Clean up dependency listRichard van der Hoff1-16/+15
remove those that aren't used at all, and replace the ones that don't have builders with simple getters rather than dynamically-generated methods.
2017-11-21Fix error on sqlite 3.7Richard van der Hoff5-8/+59
Create the url_cache index on local_media_repository as a background update, so that we can detect whether we are on sqlite or not and create a partial or complete index accordingly. To avoid running the cleanup job before we have built the index, add a bailout which will defer the cleanup if the bg updates are still running. Fixes https://github.com/matrix-org/synapse/issues/2572.
2017-11-19don't double-invite in sync_room_to_group.plMatthew Hodgson1-3/+6
2017-11-17Bump version in __init__.py v0.25.1 release-v0.25.1Richard van der Hoff1-1/+1
2017-11-17Prep changelog for v0.25.1Richard van der Hoff1-0/+8