Commit Graph

20 Commits

Author SHA1 Message Date
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