Commit Graph

28 Commits

Author SHA1 Message Date
f29fd193fb
.gitignore: add .venv 2023-04-13 16:00:05 -04:00
518898d554
tests: refactor authentication header 2023-04-13 13:30:53 -04:00
831017092a
sachet/server/views_common.py: add an extra error check on patch() 2023-04-13 12:45:15 -04:00
af21887402
/files/: implemented endpoint 2023-04-13 12:44:51 -04:00
2fba574773
sachet/server: auth_required now has more modular permissions
there is no more require_admin, because ADMIN is just one of many
permissions
2023-04-10 22:15:33 -04:00
6749391b3c
storage: refactor to be more OOP 2023-04-09 17:49:26 -04:00
25dc5b2200
storage: added tests for renaming 2023-04-09 15:04:22 -04:00
95ed51dd64
storage: implemented filesystem
test coverage to be improved
2023-04-08 18:35:56 -04:00
743c8b9eaa
added stub for server settings
we can now modify the default permissions for unauthenticated users
it doesn't do anything yet, though
2023-04-02 14:00:11 -04:00
f49d47fda6
sachet/server/models.py: make the permissions property reusable 2023-04-01 18:31:04 -04:00
68f56dd1a1
refactor: split off generic model REST API logic
also, a model's marshmallow schema class is now within the model class
2023-04-01 17:56:25 -04:00
a53fba5f4b
sachet/server/models.py: merge read_token() into the User class 2023-03-31 20:06:00 -04:00
27f6703318
linted everything with black 2023-03-30 20:20:09 -04:00
f01d1d0e54
/users/<id>: added PUT endpoint 2023-03-29 19:50:09 -04:00
ee6c7d4fa5
/users/<id>: added PATCH endpoint 2023-03-28 21:48:09 -04:00
548ccdb892
made permissions more flexible 2023-03-27 21:54:20 -04:00
96e12c33da
models: use Marshmallow for serializing/deserializing 2023-03-25 17:16:33 -04:00
e8cd368e38
auth: added /users/extend endpoint 2023-03-18 21:52:25 -04:00
657f634882
authentication: added logout ability 2023-03-11 13:07:11 -05:00
e165f6ef45
tests/test_userinfo.py: Split off authentication tests 2023-03-10 21:06:22 -05:00
10dc7957a2
tests: improved coverage 2023-03-10 18:32:07 -05:00
e258a0d061
README.md: added 2023-03-10 18:31:25 -05:00
095969a02a
Fix configurations
Originally it always defaulted to development, no matter what for some
reason
2023-03-10 18:17:03 -05:00
3e3606d809
tests: added tests for authentication 2023-03-10 14:31:20 -05:00
6afe0cc521
added tests/
this runs off pytest
currently we only tested the CLI commands
2023-03-10 11:08:54 -05:00
950265e013
auth: added logins
users can now request a login and we can check that they are
authenticated or administrator using function decorators
2023-03-10 09:19:21 -05:00
8e1b3e4b81
manage.py: separated the user management logic 2023-03-09 16:39:20 -05:00
00314f155a initial commit
by this point we have:

- flask boilerplate
- sqlite
- user creation/deletion cli
2023-03-09 16:38:57 -05:00