74cbfdc7de 
								
							
								 
							
						 
						
							
							
								
								Fix unit tests  
							
							
							
						 
						
							2016-09-06 18:30:03 +01:00  
				
					
						
							
							
								 
						
							
							
								bc1a8b1f7a 
								
							
								 
							
						 
						
							
							
								
								Don't notify for online -> online transitions.  
							
							... 
							
							
							
							Specifically, if currently_active remains true then we should not notify
if only the last active time changes. 
							
						 
						
							2016-08-30 15:05:32 +01:00  
				
					
						
							
							
								 
						
							
							
								93b32d4515 
								
							
								 
							
						 
						
							
							
								
								Fix unit tests  
							
							
							
						 
						
							2016-08-26 15:40:27 +01:00  
				
					
						
							
							
								 
						
							
							
								9da84a9a1e 
								
							
								 
							
						 
						
							
							
								
								Make AppserviceHandler stream events from database  
							
							... 
							
							
							
							This is for two reasons:
1. Suppresses duplicates correctly, as the notifier doesn't do any
   duplicate suppression.
2. Makes it easier to connect the AppserviceHandler to the replication
   stream. 
							
						 
						
							2016-08-18 11:54:41 +01:00  
				
					
						
							
							
								 
						
							
							
								320dfe523c 
								
							
								 
							
						 
						
							
							
								
								Make notify_interested_services faster  
							
							
							
						 
						
							2016-08-17 17:20:50 +01:00  
				
					
						
							
							
								 
						
							
							
								b835ebcc79 
								
							
								 
							
						 
						
							
							
								
								Update unit tests  
							
							
							
						 
						
							2016-08-17 11:22:11 +01:00  
				
					
						
							
							
								 
						
							
							
								a8bcc7274d 
								
							
								 
							
						 
						
							
							
								
								PEP8  
							
							
							
						 
						
							2016-08-08 17:20:38 +01:00  
				
					
						
							
							
								 
						
							
							
								6fe6a6f029 
								
							
								 
							
						 
						
							
							
								
								Fix login with m.login.token  
							
							... 
							
							
							
							login with token (as used by CAS auth) was broken by 067596d 
							
						 
						
							2016-08-08 16:40:39 +01:00  
				
					
						
							
							
								 
						
							
							
								91fa69e029 
								
							
								 
							
						 
						
							
							
								
								keys/query: return all users which were asked for  
							
							... 
							
							
							
							In the situation where all of a user's devices get deleted, we want to
indicate this to a client, so we want to return an empty dictionary, rather
than nothing at all. 
							
						 
						
							2016-08-03 15:41:44 +01:00  
				
					
						
							
							
								 
						
							
							
								eb359eced4 
								
							
								 
							
						 
						
							
							
								
								Add `create_requester` function  
							
							... 
							
							
							
							Wrap the `Requester` constructor with a function which provides sensible
defaults, and use it throughout 
							
						 
						
							2016-07-26 16:46:53 +01:00  
				
					
						
							
							
								 
						
							
							
								012b4c1913 
								
							
								 
							
						 
						
							
							
								
								Implement updating devices  
							
							... 
							
							
							
							You can update the displayname of devices now. 
							
						 
						
							2016-07-26 07:35:48 +01:00  
				
					
						
							
							
								 
						
							
							
								436bffd15f 
								
							
								 
							
						 
						
							
							
								
								Implement deleting devices  
							
							
							
						 
						
							2016-07-26 07:35:48 +01:00  
				
					
						
							
							
								 
						
							
							
								55abbe1850 
								
							
								 
							
						 
						
							
							
								
								make /devices return a list  
							
							... 
							
							
							
							Turns out I specced this to return a list of devices rather than a dict of them 
							
						 
						
							2016-07-21 15:57:28 +01:00  
				
					
						
							
							
								 
						
							
							
								1c3c202b96 
								
							
								 
							
						 
						
							
							
								
								Fix PEP8 errors  
							
							
							
						 
						
							2016-07-21 13:15:15 +01:00  
				
					
						
							
							
								 
						
							
							
								406f7aa0f6 
								
							
								 
							
						 
						
							
							
								
								Implement GET /device/{deviceId}  
							
							
							
						 
						
							2016-07-21 12:00:29 +01:00  
				
					
						
							
							
								 
						
							
							
								40a1c96617 
								
							
								 
							
						 
						
							
							
								
								Fix PEP8 errors  
							
							
							
						 
						
							2016-07-20 18:06:28 +01:00  
				
					
						
							
							
								 
						
							
							
								bc8f265f0a 
								
							
								 
							
						 
						
							
							
								
								GET /devices endpoint  
							
							... 
							
							
							
							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. 
							
						 
						
							2016-07-20 16:42:32 +01:00  
				
					
						
							
							
								 
						
							
							
								f863a52cea 
								
							
								 
							
						 
						
							
							
								
								Add device_id support to /login  
							
							... 
							
							
							
							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. 
							
						 
						
							2016-07-18 16:39:44 +01:00  
				
					
						
							
							
								 
						
							
							
								0136a522b1 
								
							
								 
							
						 
						
							
							
								
								Bug fix: expire invalid access tokens  
							
							
							
						 
						
							2016-07-13 15:00:37 +02:00  
				
					
						
							
							
								 
						
							
							
								6e7dc7c7dd 
								
							
								 
							
						 
						
							
							
								
								Fix a bug caused by a change in auth_handler function  
							
							... 
							
							
							
							Fix the relevant unit test cases 
							
						 
						
							2016-06-08 23:22:39 +02:00  
				
					
						
							
							
								 
						
							
							
								56d15a0530 
								
							
								 
							
						 
						
							
							
								
								Store the typing users as user_id strings. ( #819 )  
							
							... 
							
							
							
							Rather than storing them as UserID objects. 
							
						 
						
							2016-06-02 16:28:54 +01:00  
				
					
						
							
							
								 
						
							
							
								70599ce925 
								
							
								 
							
						 
						
							
							
								
								Allow external processes to mark a user as syncing. ( #812 )  
							
							... 
							
							
							
							* 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 
							
						 
						
							2016-06-02 15:20:15 +01:00  
				
					
						
							
							
								 
						
							
							
								c626fc576a 
								
							
								 
							
						 
						
							
							
								
								Move the AS handler out of the Handlers object.  
							
							... 
							
							
							
							Access it directly from the homeserver itself. It already wasn't
inheriting from BaseHandler storing it on the Handlers object was
already somewhat dubious. 
							
						 
						
							2016-05-31 13:53:48 +01:00  
				
					
						
							
							
								 
						
							
							
								6fe04ffef2 
								
							
								 
							
						 
						
							
							
								
								Fix set profile error with Requester.  
							
							... 
							
							
							
							Replace flush_user with delete access token due to function removal
Add a new test case for if the user is already registered 
							
						 
						
							2016-05-23 19:50:28 +02:00  
				
					
						
							
							
								 
						
							
							
								0cb441fedd 
								
							
								 
							
						 
						
							
							
								
								Move typing handler out of the Handlers object  
							
							
							
						 
						
							2016-05-17 15:58:46 +01:00  
				
					
						
							
							
								 
						
							
							
								821306120a 
								
							
								 
							
						 
						
							
							
								
								Replaces calls to fetch_room_distributions_into with get_joined_hosts_for_room  
							
							
							
						 
						
							2016-05-16 19:48:07 +01:00  
				
					
						
							
							
								 
						
							
							
								40aa6e8349 
								
							
								 
							
						 
						
							
							
								
								Create user with expiry  
							
							... 
							
							
							
							- Add unittests for client, api and handler
Signed-off-by: Negar Fazeli <negar.fazeli@ericsson.com> 
							
						 
						
							2016-05-13 15:34:15 +02:00  
				
					
						
							
							
								 
						
							
							
								b4022cc487 
								
							
								 
							
						 
						
							
							
								
								Pass whole requester to ratelimiting  
							
							... 
							
							
							
							This will enable more detailed decisions 
							
						 
						
							2016-03-03 16:43:42 +00:00  
				
					
						
							
							
								 
						
							
							
								700487a7c7 
								
							
								 
							
						 
						
							
							
								
								Fix flake8 warnings for tests  
							
							
							
						 
						
							2016-02-19 15:34:38 +00:00  
				
					
						
							
							
								 
						
							
							
								929cb0ed7d 
								
							
								 
							
						 
						
							
							
								
								Don't set currently_active for remote presence  
							
							
							
						 
						
							2016-02-19 10:58:27 +00:00  
				
					
						
							
							
								 
						
							
							
								b4796a62ee 
								
							
								 
							
						 
						
							
							
								
								Add unit test  
							
							
							
						 
						
							2016-02-18 11:52:33 +00:00  
				
					
						
							
							
								 
						
							
							
								9da9826b85 
								
							
								 
							
						 
						
							
							
								
								Remove old tests.  
							
							
							
						 
						
							2016-02-18 10:46:16 +00:00  
				
					
						
							
							
								 
						
							
							
								2c176e02ae 
								
							
								 
							
						 
						
							
							
								
								Make unit tests work  
							
							
							
						 
						
							2016-01-18 14:48:50 +00:00  
				
					
						
							
							
								 
						
							
							
								ac5a4477ad 
								
							
								 
							
						 
						
							
							
								
								Require unbanning before other membership changes  
							
							
							
						 
						
							2016-01-15 16:27:26 +00:00  
				
					
						
							
							
								 
						
							
							
								c0a279e808 
								
							
								 
							
						 
						
							
							
								
								Delete the table objects from TransactionStore  
							
							
							
						 
						
							2016-01-13 11:15:20 +00:00  
				
					
						
							
							
								 
						
							
							
								c232780081 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #456  from matrix-org/store_event_actions  
							
							... 
							
							
							
							Send unread notification counts 
							
						 
						
							2016-01-08 14:47:15 +00:00  
				
					
						
							
							
								 
						
							
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
				
					
						
							
							
								 
						
							
							
								0e48f7f245 
								
							
								 
							
						 
						
							
							
								
								fix tests  
							
							
							
						 
						
							2016-01-06 16:46:41 +00:00  
				
					
						
							
							
								 
						
							
							
								92a1e74b20 
								
							
								 
							
						 
						
							
							
								
								fix tests  
							
							
							
						 
						
							2016-01-04 14:17:35 +00:00  
				
					
						
							
							
								 
						
							
							
								d79e90f078 
								
							
								 
							
						 
						
							
							
								
								Add mocks to make tests work again  
							
							
							
						 
						
							2015-12-22 17:56:56 +00:00  
				
					
						
							
							
								 
						
							
							
								7b593af7e1 
								
							
								 
							
						 
						
							
							
								
								rename the method in the tests as well  
							
							
							
						 
						
							2015-12-01 16:06:17 +00:00  
				
					
						
							
							
								 
						
							
							
								bd3de8f39a 
								
							
								 
							
						 
						
							
							
								
								Update tests  
							
							
							
						 
						
							2015-11-17 18:38:48 +00:00  
				
					
						
							
							
								 
						
							
							
								ca2f90742d 
								
							
								 
							
						 
						
							
							
								
								Open up /events to anonymous users for room events only  
							
							... 
							
							
							
							Squash-merge of PR #345  from daniel/anonymousevents 
							
						 
						
							2015-11-05 14:32:26 +00:00  
				
					
						
							
							
								 
						
							
							
								617501dd2a 
								
							
								 
							
						 
						
							
							
								
								Move token generation to auth handler  
							
							... 
							
							
							
							I prefer the auth handler to worry about all auth, and register to call
into it as needed, than to smatter auth logic between the two. 
							
						 
						
							2015-08-20 11:35:56 +01:00  
				
					
						
							
							
								 
						
							
							
								70e265e695 
								
							
								 
							
						 
						
							
							
								
								Re-add whitespace around caveat operators  
							
							
							
						 
						
							2015-08-19 14:30:31 +01:00  
				
					
						
							
							
								 
						
							
							
								ce832c38d4 
								
							
								 
							
						 
						
							
							
								
								Remove padding space around caveat operators  
							
							
							
						 
						
							2015-08-18 17:39:26 +01:00  
				
					
						
							
							
								 
						
							
							
								42e858daeb 
								
							
								 
							
						 
						
							
							
								
								Fix units in test  
							
							... 
							
							
							
							I made the non-test seconds instead of ms, but not the test 
							
						 
						
							2015-08-18 17:38:37 +01:00  
				
					
						
							
							
								 
						
							
							
								3e6fdfda00 
								
							
								 
							
						 
						
							
							
								
								Fix some formatting to use tuples  
							
							
							
						 
						
							2015-08-18 15:18:50 +01:00  
				
					
						
							
							
								 
						
							
							
								2d3462714e 
								
							
								 
							
						 
						
							
							
								
								Issue macaroons as opaque auth tokens  
							
							... 
							
							
							
							This just replaces random bytes with macaroons. The macaroons are not
inspected by the client or server.
In particular, they claim to have an expiry time, but nothing verifies
that they have not expired.
Follow-up commits will actually enforce the expiration, and allow for
token refresh.
See https://bit.ly/matrix-auth  for more information 
							
						 
						
							2015-08-18 14:22:02 +01:00  
				
					
						
							
							
								 
						
							
							
								bd1236c0ee 
								
							
								 
							
						 
						
							
							
								
								Consolidate duplicate code in notifier  
							
							
							
						 
						
							2015-07-02 11:46:05 +01:00