Commit Graph

160 Commits

Author SHA1 Message Date
Unrud 7f2d5cea62 New right "i": Only allowing HTTP method GET 2020-04-22 19:20:42 +02:00
Unrud 9bd852ba5e Remove duplicated code 2020-04-22 19:20:36 +02:00
Unrud d73a308294 Cosmetics 2020-04-22 19:20:30 +02:00
Unrud d5f5eeeddf from_file rights: Replace config parser interpolation 2020-04-22 19:20:24 +02:00
Unrud f6a3a19680 Simplify Rights plugin interface 2020-04-09 22:02:03 +02:00
Unrud 8ca01a4989 Fix integrated server on android 2020-04-09 22:01:55 +02:00
Unrud 9c622b57d5 Allow callable in configuration for plugin.type
Example:

```python3
\# Load default configuration
my_config = config.load()

\# Pass a class directly
my_config.update({"auth": {"type": MyAuth}})

\# Pass an object directly
my_rights = MyRights()
my_config.update({"rights": {"type": lambda config: my_rights}})

app = Application(my_config)
````
2020-04-09 22:01:35 +02:00
Unrud f46a3e3d24 Fix test on MacOS (3) 2020-02-20 11:27:26 +01:00
Unrud ee984b49d4 Fix test on MacOS (2) 2020-02-20 10:55:00 +01:00
Unrud 363dd79833 Fix test on MacOS 2020-02-20 10:42:50 +01:00
Unrud d3b632e123 Remove unused code 2020-02-20 10:41:33 +01:00
Unrud 8890a4c030 Handle disabled IPv6 support and workaround for PyPy 2020-02-20 07:57:39 +01:00
Unrud 9603aa3496 Tests: Replace gunicorn with waitress (works on Windows too) 2020-02-20 07:57:39 +01:00
Unrud 941bb157cc Cosmetic changes 2020-02-19 10:01:39 +01:00
Unrud 180e96b332 Move internal options to other sections 2020-02-19 09:50:36 +01:00
Unrud 5371be2b39 Mark internal configuration options and sections with underscore 2020-02-19 09:50:27 +01:00
Unrud 66fabbead9 Use socket pairs to communicate with client threads 2020-02-19 09:50:19 +01:00
Unrud db7587c593 Cosmetic changes 2020-01-21 19:40:02 +01:00
Unrud fc180266d5 Improve tests
- Parse and verify XML responses
- Extract methods for common requests
2020-01-20 09:47:51 +01:00
Unrud e11661ff3e Protect against XML DOS attacks
Only XML content from authenticated users is parsed.
2020-01-19 21:07:54 +01:00
Unrud 562d3aacec Add unicode support to htpasswd 2020-01-19 21:07:54 +01:00
Unrud 6108d8d759 Remove unsecure methods from htpasswd and make md5 default 2020-01-19 21:07:54 +01:00
Unrud 0a5fd94577 Tests: Improve whitespace tests for htpasswd 2020-01-19 21:07:54 +01:00
Unrud 866aa34f54 Cosmetic changes 2020-01-19 21:07:54 +01:00
Unrud 0fb02cd026 Cosmetic changes (pylint) 2020-01-17 12:59:14 +01:00
Unrud ed72e697de Tests: Use absolute imports 2020-01-15 18:44:00 +01:00
Unrud 1bd93a2947 Fix filesystem folder creation 2020-01-15 06:39:59 +01:00
Unrud 514cd2b7cd Test default sync implementation 2020-01-15 01:27:41 +01:00
Unrud 040d8c0fff Split BaseCollection into BaseStorage and BaseCollection 2020-01-14 06:19:23 +01:00
Unrud caf5ff1080 Change default value for external users 2020-01-12 23:32:26 +01:00
Unrud b7590f8c84 Rework configuration 2019-06-17 04:18:09 +02:00
Unrud 63e6d091b9 Update copyright 2019-06-17 04:13:24 +02:00
Unrud 14b46c04bf Create configuration for isort 2019-06-15 09:01:55 +02:00
Braxton Plaxco 27185f7291 Get `python3 ./setup.py test` to pass cleanly
~ B'ezrat Hashem ~
2019-06-15 08:49:05 +02:00
Unrud e5c4373606 Test MOVE between collections 2018-11-03 21:19:36 +00:00
Unrud 818c9e273e more rights tests 2018-09-18 21:05:04 +02:00
Unrud 93c1581e21 tests: enable debugging for new processes 2018-09-09 15:19:48 +02:00
Unrud f1de843188 test WSGI server 2018-09-09 14:58:51 +02:00
Unrud 171651e205 test command line interface 2018-09-09 14:58:44 +02:00
Unrud a146521500 test storage verification 2018-09-09 14:58:44 +02:00
Unrud 515a5c9d18 cosmetics 2018-09-09 14:58:43 +02:00
Unrud 95d8c273c4 restore EAI_ADDRFAMILY after test 2018-09-09 14:58:42 +02:00
Unrud e4ee569bd2 Measure coverage of forked processes 2018-09-09 07:28:36 +02:00
Unrud 1a26df865c passlib: use hash() instead of deprecated encrypt() 2018-09-08 14:57:55 +02:00
Unrud 94bb4fbdae Tests: generalize IPv6 detection 2018-09-08 09:24:46 +02:00
Unrud 7760f4edf0 Travis doesn't support IPv6 on osx and linux with sudo 2018-09-06 10:52:27 +02:00
Unrud 8fe2d987e0 Use IP instead of hostname localhost 2018-09-06 10:52:27 +02:00
Unrud dec2ad8bea Add support for IPv6 hostnames 2018-09-06 09:12:53 +02:00
Unrud 9c802e0f57 skip ambiguous isort modules 2018-09-05 11:37:18 +02:00
Unrud 5e0a387ed9 remove whitespace before email 2018-09-04 03:33:47 +02:00