Commit graph

50 commits

Author SHA1 Message Date
fa4c2e45ab HTTP 2XX rework 2022-04-07 11:59:42 +00:00
96a3aed24e HTTP status codes and documentation 2022-04-07 06:23:09 +00:00
72fc209349 HTTP 201 2022-04-01 06:35:28 +00:00
1f4a9994a6 get_current_config dependable 2022-03-30 20:57:09 +00:00
598b0ca2cb remove NEEDS_ADMIN 2022-03-30 02:07:22 +00:00
3b66565481 remove get_current_user_if_admin 2022-03-30 02:02:45 +00:00
9b5a98e0c0 rework User methods 2022-03-30 01:51:58 +00:00
03d3a86668 basic permissions system 2022-03-29 23:36:23 +00:00
bb53bab0c0 rename "capability" -> "tag" 2022-03-29 20:22:03 +00:00
e11f96b0af dirty commit 2022-03-29 16:35:41 +00:00
ec0f7890ef rename rollback 2022-03-29 15:56:25 +00:00
fdc85bf529 don't delete yourself 2022-03-29 15:56:25 +00:00
8a0058f7f0 cleanup in _common 2022-03-29 00:13:38 +00:00
d3ed11fce4 use get_user_by_name 2022-03-29 00:10:24 +00:00
186ac0eab3 User.create() methods 2022-03-29 00:01:28 +00:00
cd3cccb540 minor bugs 2022-03-28 23:22:32 +00:00
dbbe7a8c35 syntax error 2022-03-28 22:20:25 +00:00
6254daa51d check: user can login, "admin" can do everything 2022-03-28 22:17:31 +00:00
a465dba92e side effects 2022-03-28 22:07:12 +00:00
499c97a28a Capability -> UserCapabilityType 2022-03-28 21:41:49 +00:00
3d2abbc39b fix user router 2022-03-28 20:18:19 +00:00
ca955d1104 fix for crypt_context and load() 2022-03-28 02:23:00 +00:00
c47fa5a89b split db.schemas -> db.schemata package 2022-03-25 23:54:19 +00:00
972359cb49 router tags 2022-03-24 23:45:01 +00:00
c4ad9a8e40 Error 404 2022-03-23 15:27:41 +00:00
fba1bf6514 nonexistent user deletion 2022-03-23 13:42:43 +00:00
70df7a47db typo 2022-03-23 13:40:14 +00:00
673c91bc33 User creation/deletion 2022-03-23 13:25:00 +00:00
2ed09a5b3f brevity 2022-03-23 01:17:38 +00:00
ae73c8ff70 add and remove capabilities 2022-03-23 00:41:45 +00:00
692bf0ef63 make User.authenticate an instance function 2022-03-20 04:00:14 +00:00
e49a993676 documentation & some minor refactoring 2022-03-20 03:45:40 +00:00
bf8cb86cee brevity 2022-03-20 02:32:40 +00:00
5eb9d4d113 move caps to "User" schema 2022-03-19 18:31:03 +00:00
be9454eb48 new user creation 2022-03-19 18:06:28 +00:00
f56c2fb19b get_current_user into deps 2022-03-19 04:07:19 +00:00
95a751d006 HTTP status out of dep 2022-03-19 03:37:24 +00:00
4959f1987c some renames 2022-03-19 02:38:32 +00:00
ba68692b9d more asyncio 2022-03-19 02:28:18 +00:00
2e9093caaf JWT handling 2022-03-19 02:22:49 +00:00
3cc29d4fd8 /user/auth and GET /user/current working 2022-03-19 00:38:57 +00:00
8194027c36 refactor CRUD utils 2022-03-18 23:45:09 +00:00
b42a5b44f3 "auth" -> "user" 2022-03-18 23:04:28 +00:00
746ca51bdd adhere to a plan for a change :) 2022-03-18 18:22:17 +00:00
e34e669f79 dirty commit 2022-03-18 17:36:44 +00:00
641dfd7ba0 pythonism 2022-03-17 23:00:49 +00:00
112d86d827 collapse "db" subpkg, clean install router 2022-03-15 22:42:29 +00:00
e76de17ff5 check user is admin 2022-03-15 17:38:31 +00:00
411c584480 relative imports 2022-03-15 16:25:07 +00:00
706c79b94c basic API with OAuth2 and a little sqlite DB 2022-03-15 16:19:37 +00:00