Amber Brown
							
						 
						
							 
							
							
								
								
							
							
								
							
								8532953c04 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #3534  from krombel/use_parse_and_asserts_from_servlet  
							
							 
							
							... 
							
							
							
							Use parse and asserts from http.servlet 
							
						 
						
							2018-07-14 09:09:19 +10:00  
						
					 
				
					
						
							
							
								 
								Amber Brown
							
						 
						
							 
							
							
								
								
							
							
								
							
								33b60c01b5 
								
									
								
							
								 
							
						 
						
							
							
								
								Make auth & transactions more testable ( #3499 )  
							
							 
							
							
							
						 
						
							2018-07-14 07:34:49 +10:00  
						
					 
				
					
						
							
							
								 
								Krombel
							
						 
						
							 
							
							
							
								
							
								3366b9c534 
								
							
								 
							
						 
						
							
							
								
								rename assert_params_in_request to assert_params_in_dict  
							
							 
							
							... 
							
							
							
							the method "assert_params_in_request" does handle dicts and not
requests. A request body has to be parsed to json before this method
can be used 
							
						 
						
							2018-07-13 21:53:01 +02:00  
						
					 
				
					
						
							
							
								 
								Krombel
							
						 
						
							 
							
							
							
								
							
								32fd6910d0 
								
							
								 
							
						 
						
							
							
								
								Use parse_{int,str} and assert from http.servlet  
							
							 
							
							... 
							
							
							
							parse_integer and parse_string can take a request and raise errors
in case we have wrong or missing params.
This PR tries to use them more to deduplicate some code and make it
better readable 
							
						 
						
							2018-07-13 21:40:14 +02:00  
						
					 
				
					
						
							
							
								 
								Amber Brown
							
						 
						
							 
							
							
							
								
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							 
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								244484bf3c 
								
							
								 
							
						 
						
							
							
								
								Revert "Revert "Merge pull request  #3431  from matrix-org/rav/erasure_visibility""  
							
							 
							
							... 
							
							
							
							This reverts commit 1d009013b3 . 
							
						 
						
							2018-06-25 13:42:55 +01:00  
						
					 
				
					
						
							
							
								 
								Richard van der Hoff
							
						 
						
							 
							
							
							
								
							
								1d009013b3 
								
							
								 
							
						 
						
							
							
								
								Revert "Merge pull request  #3431  from matrix-org/rav/erasure_visibility"  
							
							 
							
							... 
							
							
							
							This reverts commit ce0d911156 , reversing
changes made to b4a5d767a9 . 
							
						 
						
							2018-06-22 16:35:10 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
								
								
							
							
								
							
								ce0d911156 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #3431  from matrix-org/rav/erasure_visibility  
							
							 
							
							... 
							
							
							
							Support hiding events from deleted users 
							
						 
						
							2018-06-22 15:06:44 +01:00  
						
					 
				
					
						
							
							
								 
								Amber Brown
							
						 
						
							 
							
							
								
								
							
							
								
							
								a61738b316 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove run_on_reactor ( #3395 )  
							
							 
							
							
							
						 
						
							2018-06-14 18:27:37 +10:00  
						
					 
				
					
						
							
							
								 
								Richard van der Hoff
							
						 
						
							 
							
							
							
								
							
								f1023ebf4b 
								
							
								 
							
						 
						
							
							
								
								mark accounts as erased when requested  
							
							 
							
							
							
						 
						
							2018-06-12 09:53:18 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								9700d15611 
								
							
								 
							
						 
						
							
							
								
								pep8  
							
							 
							
							
							
						 
						
							2018-05-24 11:23:15 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								b3bff53178 
								
							
								 
							
						 
						
							
							
								
								Unbind 3pids when they're deleted too  
							
							 
							
							
							
						 
						
							2018-05-24 11:08:05 +01:00  
						
					 
				
					
						
							
							
								 
								Matthew Hodgson
							
						 
						
							 
							
							
							
								
							
								293380bef7 
								
							
								 
							
						 
						
							
							
								
								trailing commas  
							
							 
							
							
							
						 
						
							2018-01-19 15:38:53 +00:00  
						
					 
				
					
						
							
							
								 
								Matthew Hodgson
							
						 
						
							 
							
							
							
								
							
								447f4f0d5f 
								
							
								 
							
						 
						
							
							
								
								rewrite based on PR feedback:  
							
							 
							
							... 
							
							
							
							* [ ] split config options into allowed_local_3pids and registrations_require_3pid
 * [ ] simplify and comment logic for picking registration flows
 * [ ] fix docstring and move check_3pid_allowed into a new util module
 * [ ] use check_3pid_allowed everywhere
@erikjohnston PTAL 
							
						 
						
							2018-01-19 15:33:55 +00:00  
						
					 
				
					
						
							
							
								 
								Matthew Hodgson
							
						 
						
							 
							
							
							
								
							
								9d332e0f79 
								
							
								 
							
						 
						
							
							
								
								fix up v1, and improve errors  
							
							 
							
							
							
						 
						
							2018-01-19 00:53:58 +00:00  
						
					 
				
					
						
							
							
								 
								Matthew Hodgson
							
						 
						
							 
							
							
							
								
							
								28a6ccb49c 
								
							
								 
							
						 
						
							
							
								
								add registrations_require_3pid  
							
							 
							
							... 
							
							
							
							lets homeservers specify a whitelist for 3PIDs that users are allowed to associate with.
Typically useful for stopping people from registering with non-work emails 
							
						 
						
							2018-01-19 00:19:58 +00:00  
						
					 
				
					
						
							
							
								 
								Richard van der Hoff
							
						 
						
							 
							
							
							
								
							
								d7ea8c4800 
								
							
								 
							
						 
						
							
							
								
								Factor out a validate_user_via_ui_auth method  
							
							 
							
							... 
							
							
							
							Collect together all the places that validate a logged-in user via UI auth. 
							
						 
						
							2017-12-05 09:42:30 +00:00  
						
					 
				
					
						
							
							
								 
								Richard van der Hoff
							
						 
						
							 
							
							
							
								
							
								d5f9fb06b0 
								
							
								 
							
						 
						
							
							
								
								Refactor UI auth implementation  
							
							 
							
							... 
							
							
							
							Instead of returning False when auth is incomplete, throw an exception which
can be caught with a wrapper. 
							
						 
						
							2017-12-05 09:40:05 +00:00  
						
					 
				
					
						
							
							
								 
								Richard van der Hoff
							
						 
						
							 
							
							
							
								
							
								ae31f8ce45 
								
							
								 
							
						 
						
							
							
								
								Move set_password into its own handler  
							
							 
							
							... 
							
							
							
							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-29 16:44:35 +00:00  
						
					 
				
					
						
							
							
								 
								Richard van der Hoff
							
						 
						
							 
							
							
							
								
							
								7ca5c68233 
								
							
								 
							
						 
						
							
							
								
								Move deactivate_account into its own handler  
							
							 
							
							... 
							
							
							
							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-29 16:44:35 +00:00  
						
					 
				
					
						
							
							
								 
								Travis Ralston
							
						 
						
							 
							
							
							
								
							
								812c191939 
								
							
								 
							
						 
						
							
							
								
								Remove redundent call  
							
							 
							
							... 
							
							
							
							Signed-off-by: Travis Ralston <travpc@gmail.com> 
							
						 
						
							2017-11-13 12:44:21 -07:00  
						
					 
				
					
						
							
							
								 
								Travis Ralston
							
						 
						
							 
							
							
							
								
							
								2d314b771f 
								
							
								 
							
						 
						
							
							
								
								Add a route for determining who you are  
							
							 
							
							... 
							
							
							
							Useful for applications which may have an access token, but no idea as to who owns it.
Signed-off-by: Travis Ralston <travpc@gmail.com> 
							
						 
						
							2017-11-12 23:39:38 -07:00  
						
					 
				
					
						
							
							
								 
								Richard van der Hoff
							
						 
						
							 
							
							
							
								
							
								dd13310fb8 
								
							
								 
							
						 
						
							
							
								
								Move access token deletion into auth handler  
							
							 
							
							... 
							
							
							
							Also move duplicated deactivation code into the auth handler.
I want to add some hooks when we deactivate an access token, so let's bring it
all in here so that there's somewhere to put it. 
							
						 
						
							2017-11-01 15:46:22 +00:00  
						
					 
				
					
						
							
							
								 
								Richard van der Hoff
							
						 
						
							 
							
							
							
								
							
								785bd7fd75 
								
							
								 
							
						 
						
							
							
								
								Allow ASes to deactivate their own users  
							
							 
							
							
							
						 
						
							2017-10-27 00:01:00 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								a2dfab12c5 
								
							
								 
							
						 
						
							
							
								
								Fix token request for addition of phone numbers  
							
							 
							
							
							
						 
						
							2017-03-23 18:46:17 +00:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								73a5f06652 
								
							
								 
							
						 
						
							
							
								
								Support registration / login with phone number  
							
							 
							
							... 
							
							
							
							Changes from https://github.com/matrix-org/synapse/pull/1971  
							
						 
						
							2017-03-13 17:27:51 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								7eae6eaa2f 
								
							
								 
							
						 
						
							
							
								
								Revert "Support registration & login with phone number"  
							
							 
							
							
							
						 
						
							2017-03-13 09:59:33 +00:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								1c99934b28 
								
							
								 
							
						 
						
							
							
								
								pep8  
							
							 
							
							
							
						 
						
							2017-03-08 11:58:20 +00:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								85bb322333 
								
							
								 
							
						 
						
							
							
								
								Pull out datastore in initialiser  
							
							 
							
							
							
						 
						
							2017-03-08 11:51:25 +00:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								2e27339add 
								
							
								 
							
						 
						
							
							
								
								Refector out assert_params_in_request  
							
							 
							
							... 
							
							
							
							and replace requestEmailToken where we meant requestMsisdnToken 
							
						 
						
							2017-03-08 11:37:34 +00:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								88df6c0c9a 
								
							
								 
							
						 
						
							
							
								
								Factor out msisdn canonicalisation  
							
							 
							
							... 
							
							
							
							Plus a couple of other minor fixes 
							
						 
						
							2017-03-08 11:03:39 +00:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								402a7bf63d 
								
							
								 
							
						 
						
							
							
								
								Fix pep8  
							
							 
							
							
							
						 
						
							2017-03-08 09:33:40 +00:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								ce3e583d94 
								
							
								 
							
						 
						
							
							
								
								WIP support for msisdn 3pid proxy methods  
							
							 
							
							
							
						 
						
							2017-02-14 15:05:55 +00:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								8c5009b628 
								
							
								 
							
						 
						
							
							
								
								Lowercase all email addresses before querying db  
							
							 
							
							... 
							
							
							
							Since we store all emails in the DB in lowercase
(https://github.com/matrix-org/synapse/pull/1170 ) 
							
						 
						
							2017-01-18 13:25:56 +00:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								0c88ab1844 
								
							
								 
							
						 
						
							
							
								
								Add /account/3pid/delete endpoint  
							
							 
							
							... 
							
							
							
							Also fix a typo in a comment 
							
						 
						
							2016-12-20 18:27:30 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								848d3bf2e1 
								
							
								 
							
						 
						
							
							
								
								Add hs object  
							
							 
							
							
							
						 
						
							2016-07-14 10:25:52 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								b55c770271 
								
							
								 
							
						 
						
							
							
								
								Only accept password auth  
							
							 
							
							
							
						 
						
							2016-07-14 10:00:38 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								d543b72562 
								
							
								 
							
						 
						
							
							
								
								Add an /account/deactivate endpoint  
							
							 
							
							
							
						 
						
							2016-07-14 09:56:53 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								c55ad2e375 
								
							
								 
							
						 
						
							
							
								
								be more pythonic  
							
							 
							
							
							
						 
						
							2016-07-12 14:15:10 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								aaa9d9f0e1 
								
							
								 
							
						 
						
							
							
								
								on_OPTIONS isn't neccessary  
							
							 
							
							
							
						 
						
							2016-07-12 14:13:14 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								75fa7f6b3c 
								
							
								 
							
						 
						
							
							
								
								Remove other debug logging  
							
							 
							
							
							
						 
						
							2016-07-12 14:08:57 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								a5db0026ed 
								
							
								 
							
						 
						
							
							
								
								Separate out requestTokens to separate handlers  
							
							 
							
							
							
						 
						
							2016-07-11 09:57:07 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								9c491366c5 
								
							
								 
							
						 
						
							
							
								
								Oops, remove debug logging  
							
							 
							
							
							
						 
						
							2016-07-11 09:07:40 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								385aec4010 
								
							
								 
							
						 
						
							
							
								
								Implement  https://github.com/matrix-org/matrix-doc/pull/346/files  
							
							 
							
							
							
						 
						
							2016-07-08 17:42:48 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								4a10510cd5 
								
							
								 
							
						 
						
							
							
								
								Split out the auth handler  
							
							 
							
							
							
						 
						
							2016-06-02 13:31:45 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								dc2c527ce9 
								
							
								 
							
						 
						
							
							
								
								Fix password reset  
							
							 
							
							... 
							
							
							
							Default requester to None, otherwise it isn't defined when resetting using email auth 
							
						 
						
							2016-04-29 12:07:54 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								f5e90422f5 
								
							
								 
							
						 
						
							
							
								
								take extra return val from check_auth in account too  
							
							 
							
							
							
						 
						
							2016-03-16 14:33:19 +00:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								aa11db5f11 
								
							
								 
							
						 
						
							
							
								
								Fix cache invalidation so deleting access tokens (which we did when changing password) actually takes effect without HS restart. Reinstate the code to avoid logging out the session that changed the password, removed in  415c2f0549 
							
							 
							
							
							
						 
						
							2016-03-11 13:14:18 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								b7dbe5147a 
								
							
								 
							
						 
						
							
							
								
								Add a parse_json_object function  
							
							 
							
							... 
							
							
							
							to deduplicate all the copy+pasted _parse_json functions. Also document
the parse_.* functions. 
							
						 
						
							2016-03-09 11:26:26 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								5687a00e4e 
								
							
								 
							
						 
						
							
							
								
								Allow three_pid_creds as well as threePidCreds in /account/3pid  
							
							 
							
							
							
						 
						
							2016-01-29 13:26:15 +00:00