107 Commits

Author SHA1 Message Date
Sheng
786b42da7e Re-raise InvalidValueError for PasswordRequiredException 2019-05-19 20:27:44 +08:00
Sheng
9fbd5d325f Made tests compatible with tornado 4.5.3 2019-02-21 17:32:55 +08:00
Sheng
b25fbd7b57 Changed exception error message 2019-02-21 16:12:48 +08:00
Sheng
824e6b9113 Refactored tests 2019-02-13 20:51:12 +08:00
Sheng
8922813142 Refactored tests 2019-02-13 11:40:44 +08:00
Sheng
d389e32b85 Enhanced tests 2019-02-13 09:30:06 +08:00
Sheng
a1c9378048 Support CORS 2019-01-23 21:48:03 +08:00
Sheng
713ae1e8f1 Support cross origin connect 2019-01-19 19:19:45 +08:00
Sheng
c35f801235 Support custom origin configuration 2019-01-19 16:46:25 +08:00
Sheng
8a8d741230 Refactored method is_forbidden 2019-01-16 22:58:49 +08:00
Sheng
682ddbf65f Removed function for detecting whether the http(s) server is open to public 2019-01-15 23:02:14 +08:00
Sheng
2e0f06e650 Fixed is_same_primary_domain 2019-01-11 15:02:30 +08:00
Sheng
5c8bd84b95 Added an option for configuring cross-origin websocket level 2019-01-10 22:09:32 +08:00
Sheng
2653a3e35a Added function for limiting connections for every client(ip) 2018-12-29 16:16:06 +08:00
Sheng
699b37d7a1 Updated test_app.py 2018-11-16 11:42:25 +08:00
Sheng
32f303474e Updated test_app.py 2018-11-15 20:23:42 +08:00
Sheng
646621279b Updated test_policy.py 2018-11-15 19:49:45 +08:00
Sheng
4525f50b11 Added test_main.py to tests 2018-10-23 22:56:18 +08:00
Sheng
d0542e72c6 Fixed test_get_redirect_url 2018-10-21 14:45:58 +08:00
Sheng
8e4039a24a Support redirecting http to https 2018-10-21 14:07:44 +08:00
Sheng
40cf1095ff Use open_to_public to store the status of the http(s) server 2018-10-20 17:54:12 +08:00
Sheng
e31e9be433 Updated get_trusted_downstream 2018-10-20 15:30:11 +08:00
Sheng
1f835f5a70 Refactored handler.py 2018-10-19 18:18:55 +08:00
Sheng
68468585ee Added a command line option xheaders 2018-10-18 20:25:30 +08:00
Sheng
a8a444d7ed Always reset fbidhttp to False if not open to public 2018-10-18 18:17:42 +08:00
Sheng
5d6f92e529 Move some config variables to handler.py 2018-10-18 15:07:45 +08:00
Sheng
c06bf5311a Added an option for blocking public non-https requests 2018-10-17 22:39:53 +08:00
Sheng
c2c81aaeae Use method initialize to deny forbidden acesss 2018-10-17 19:22:51 +08:00
Sheng
7e5a170383 Added head method IndexHandler 2018-10-16 16:15:39 +08:00
Sheng
a68eff592f Added attribute custom_headers to MixinHandler 2018-10-16 15:14:34 +08:00
Sheng
af60cd1cd5 Tested app with 403 and 404 requests 2018-10-16 14:51:15 +08:00
Sheng
e94c846379 Added default handler NotFoundHandler 2018-10-16 13:56:44 +08:00
Sheng
499f3b6dcd Lowercase all option names 2018-10-15 22:06:02 +08:00
Sheng
12f4c0d0d2 Pass server settings for test 2018-10-15 21:36:54 +08:00
Sheng
77b6fbfd85 Block requests not come from trusted_downstream and public non-https requests 2018-10-15 20:14:53 +08:00
Sheng
db3ee2b784 Added proxies option for trusted downstream 2018-10-15 17:49:02 +08:00
Sheng
bb9d193cae Fixed assertion in rasied exception context 2018-10-14 16:46:47 +08:00
Sheng
827a0d8a9d Support https server 2018-10-14 16:15:39 +08:00
Sheng
66ebe2ceb2 Use general method to validate ipaddress 2018-10-13 09:47:15 +08:00
Sheng
656e2ff028 Tested default port 2018-10-10 23:18:38 +08:00
Sheng
0c9db2abaf Set default port 22 on server side 2018-10-10 22:30:37 +08:00
Sheng
f6d2776a20 Let tornado parse xheaders 2018-10-10 10:51:40 +08:00
Sheng
88405eddac Added to_int to utils 2018-10-10 08:49:59 +08:00
Sheng
33703f0ca3 Updated lookup_hostname 2018-10-08 22:37:03 +08:00
Sheng
a576a41ea4 Lookup hostname before connection under reject policy 2018-10-08 20:25:21 +08:00
Sheng
90e7ea0327 Fixed test_print_version 2018-10-03 19:22:20 +08:00
Sheng
2adcf93362 Updated tests/utils.py 2018-09-18 20:56:34 +08:00
Sheng
1a7c395c75 Updated requirements.txt 2018-09-13 18:44:13 +08:00
Sheng
b3c33ff6bd Use form attribute novalidate for debug mode 2018-09-12 13:47:33 +08:00
Sheng
b372fcbbb2 Pass None for empty password 2018-09-12 13:07:05 +08:00