- Jul 20, 2016
-
-
Richard van der Hoff authored
Record the device_id when we add a client ip; it's somewhat redundant as we could get it via the access_token, but it will make querying rather easier.
-
- Jul 19, 2016
-
-
Richard van der Hoff authored
* `RegistrationHandler.appservice_register` no longer issues an access token: instead it is left for the caller to do it. (There are two of these, one in `synapse/rest/client/v1/register.py`, which now simply calls `AuthHandler.issue_access_token`, and the other in `synapse/rest/client/v2_alpha/register.py`, which is covered below). * In `synapse/rest/client/v2_alpha/register.py`, move the generation of access_tokens into `_create_registration_details`. This means that the normal flow no longer needs to call `AuthHandler.issue_access_token`; the shared-secret flow can tell `RegistrationHandler.register` not to generate a token; and the appservice flow continues to work despite the above change.
-
Richard van der Hoff authored
This is meant to be an *almost* non-functional change, with the exception that it fixes what looks a lot like a bug in that it only calls `auth_handler.add_threepid` and `add_pusher` once instead of three times. The idea is to move the generation of the `access_token` out of `registration_handler.register`, because `access_token`s now require a device_id, and we only want to generate a device_id once registration has been successful.
-
- Jul 18, 2016
-
-
Richard van der Hoff authored
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.
-
- Jul 14, 2016
-
-
Erik Johnston authored
-
- Jul 13, 2016
-
-
Negar Fazeli authored
-
- Jul 05, 2016
-
-
Erik Johnston authored
-
- Jun 24, 2016
-
-
David Baker authored
as get_room_name_and_alias is now gone
-
- Jun 22, 2016
-
-
Martin Weinelt authored
Use the pure-python ldap3 library, which eliminates the need for a system dependency. Offer both a `search` and `simple_bind` mode, for more sophisticated ldap scenarios. - `search` tries to find a matching DN within the `user_base` while employing the `user_filter`, then tries the bind when a single matching DN was found. - `simple_bind` tries the bind against a specific DN by combining the localpart and `user_base` Offer support for STARTTLS on a plain connection. The configuration was changed to reflect these new possibilities. Signed-off-by:
Martin Weinelt <hexa@darmstadt.ccc.de>
-
- Jun 17, 2016
-
-
Erik Johnston authored
-
- Jun 09, 2016
-
-
Mark Haines authored
Renames ``load_config`` to ``load_or_generate_config`` Adds a method called ``load_config`` that just loads the config. The main synapse.app.homeserver will continue to use ``load_or_generate_config`` to retain backwards compat. However new worker processes can use ``load_config`` to load the config avoiding some of the cruft needed to generate the config. As the new ``load_config`` method is expected to be used by new configs it removes support for the legacy commandline overrides that ``load_or_generate_config`` supports
-
- Jun 08, 2016
-
-
Negar Fazeli authored
Fix the relevant unit test cases
-
- Jun 07, 2016
-
-
Erik Johnston authored
-
Erik Johnston authored
-
- Jun 03, 2016
-
-
Erik Johnston authored
-
Erik Johnston authored
We change it so that each cache has an individual CacheMetric, instead of having one global CacheMetric. This means that when a cache tries to increment a counter it does not need to go through so many indirections.
-
- Jun 02, 2016
-
-
Mark Haines authored
Rather than storing them as UserID objects.
-
Mark Haines authored
* Add infrastructure to the presence handler to track sync requests in external processes * Expire stale entries for dead external processes * Add an http endpoint for making users as syncing Add some docstrings and comments. * Fixes
-
David Baker authored
-
- Jun 01, 2016
-
-
David Baker authored
Otherwise it tries to start the remote public room list updating looping call which breaks.
-
- May 31, 2016
-
-
Mark Haines authored
Access it directly from the homeserver itself. It already wasn't inheriting from BaseHandler storing it on the Handlers object was already somewhat dubious.
-
- May 23, 2016
-
-
Negi Fazeli authored
Replace flush_user with delete access token due to function removal Add a new test case for if the user is already registered
-
- May 17, 2016
-
-
Mark Haines authored
-
- May 16, 2016
-
-
Mark Haines authored
-
Mark Haines authored
-
Mark Haines authored
-
- May 13, 2016
-
-
Mark Haines authored
-
Negi Fazeli authored
- Add unittests for client, api and handler Signed-off-by:
Negar Fazeli <negar.fazeli@ericsson.com>
-
- Apr 21, 2016
-
-
Mark Haines authored
-
- Apr 19, 2016
-
-
Mark Haines authored
-
Mark Haines authored
-
- Apr 18, 2016
-
-
Erik Johnston authored
-
- Apr 08, 2016
-
-
Mark Haines authored
* Remove some unused functions * get_room_events_stream is only used in tests * is_exclusive_room might actually be something we want
-
- Apr 07, 2016
-
-
Mark Haines authored
-
Mark Haines authored
Rather than adding them globally. This limits the changes to only affect the tests.
-
Erik Johnston authored
-
Mark Haines authored
-
- Apr 06, 2016
-
-
Mark Haines authored
-
Mark Haines authored
Add a test to check that get_room_names_and_aliases does the same thing on both the master and on the slave data store.
-
Erik Johnston authored
-