- 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.
-
Richard van der Hoff authored
Fix some more comments on some things
-
Erik Johnston authored
Add metrics for psutil derived memory usage
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
Don't notify pusher pool for backfilled events
-
Erik Johnston authored
-
Richard van der Hoff authored
Type annotations
-
David Baker authored
Further registration refactoring
-
Erik Johnston authored
Feature: Add filter to /messages. Add 'contains_url' to filter.
-
Erik Johnston authored
-
- Jul 19, 2016
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Add some type annotations to help PyCharm (in particular) to figure out the types of a bunch of things.
-
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.
-
David Baker authored
rest/client/v2_alpha/register.py: Refactor flow somewhat.
-
Richard van der Hoff authored
Add device_id support to /login
-
Richard van der Hoff authored
-
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.
-
Richard van der Hoff authored
device_id should be text, not bigint.
-
Mark Haines authored
Update docstring on Handlers.
-
Mark Haines authored
-
Mark Haines authored
To indicate it is deprecated.
-
- 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.
-
Richard van der Hoff authored
Refactor login flow
-
Richard van der Hoff authored
Make sure that we have the canonical user_id *before* calling get_login_tuple_for_user_id. Replace login_with_password with a method which just validates the password, and have the caller call get_login_tuple_for_user_id. This brings the password flow into line with the other flows, and will give us a place to register the device_id if necessary.
-
Erik Johnston authored
Fix /purge_history bug
-
Mark Haines authored
Fix 500 ISE when sending alias event without a state_key
-
Erik Johnston authored
Fall back to 'username' if 'user' is not given for appservice registration.
-
Richard van der Hoff authored
The `store` in a handler is a generic DataStore, not just an events.StateStore.
-
- Jul 16, 2016
- Jul 15, 2016
-
-
Mark Haines authored
-
Erik Johnston authored
This was caused by trying to insert duplicate backward extremeties
-
Erik Johnston authored
Various purge_history fixes
-
Erik Johnston authored
Various auth.py fixes.
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
- Jul 14, 2016
-
-
Erik Johnston authored
Feature: Add an /account/deactivate endpoint
-
Erik Johnston authored
-