|
a20699d6ca
|
Merge branch 'develop' into feature/db-redesign
|
2022-03-28 02:27:28 +00:00 |
|
|
6b6da69bb4
|
app not a string
|
2022-03-28 02:27:14 +00:00 |
|
|
ca955d1104
|
fix for crypt_context and load()
|
2022-03-28 02:23:00 +00:00 |
|
|
3d83ddb6cc
|
Config.load_sync -> Config._
|
2022-03-28 02:15:42 +00:00 |
|
|
b7179e7cfc
|
limit query
|
2022-03-28 02:03:31 +00:00 |
|
|
ce9ea61da5
|
some testing stuff
|
2022-03-28 02:02:12 +00:00 |
|
|
19dd5aaee7
|
use correct database URI
|
2022-03-28 02:00:58 +00:00 |
|
|
ae8894f5cc
|
repaired admin routes
|
2022-03-28 01:52:56 +00:00 |
|
|
12432286bf
|
rename db_new -> db
|
2022-03-28 01:34:52 +00:00 |
|
|
b4a74aca5f
|
remove old db
|
2022-03-28 01:34:15 +00:00 |
|
|
0619f00f6a
|
rework common and admin router for new db
|
2022-03-28 01:31:37 +00:00 |
|
|
6012998ecf
|
don't play with new db
|
2022-03-28 01:30:37 +00:00 |
|
|
d41cd9b15b
|
check if user can do
|
2022-03-28 01:28:49 +00:00 |
|
|
22e1ef7bf4
|
don't require email
|
2022-03-28 01:00:07 +00:00 |
|
|
396359ceff
|
message to future me
|
2022-03-28 00:59:53 +00:00 |
|
|
89069c9d0f
|
typo
|
2022-03-28 00:55:18 +00:00 |
|
|
bc3f7984f5
|
some fun with db_new
|
2022-03-28 00:50:21 +00:00 |
|
|
c7f93d468e
|
rename
|
2022-03-28 00:50:00 +00:00 |
|
|
24ade65bb0
|
db_new interface
|
2022-03-28 00:48:59 +00:00 |
|
|
04a5798258
|
capabilities rework
|
2022-03-28 00:48:44 +00:00 |
|
|
730c7ab966
|
add devices
|
2022-03-28 00:43:28 +00:00 |
|
|
e2f916debc
|
Capabilities
|
2022-03-27 13:47:38 +00:00 |
|
|
9625336df9
|
User CRUD
|
2022-03-27 13:47:18 +00:00 |
|
|
ae3627cbe0
|
use "cls"
|
2022-03-27 01:22:28 +00:00 |
|
|
e7030eb521
|
"user" table with sqlmodel
|
2022-03-27 01:17:54 +00:00 |
|
|
8daeb946f8
|
Merge branch 'develop' into feature/db-redesign
|
2022-03-26 16:06:11 +00:00 |
|
|
b5e9323026
|
git close diff on operation
|
2022-03-26 16:05:36 +00:00 |
|
|
94fbab278c
|
add models.User.from_db()
|
2022-03-26 01:49:47 +00:00 |
|
|
557bceed1f
|
legacy
|
2022-03-25 23:56:57 +00:00 |
|
|
c47fa5a89b
|
split db.schemas -> db.schemata package
|
2022-03-25 23:54:19 +00:00 |
|
|
02225cdf09
|
plan models + schemas
|
2022-03-25 23:03:56 +00:00 |
|
|
1ed3b587c7
|
quark
|
2022-03-25 15:50:45 +00:00 |
|
|
972359cb49
|
router tags
|
2022-03-24 23:45:01 +00:00 |
|
|
c117698e48
|
use APIRouter instead of another FastAPI
|
2022-03-24 23:44:51 +00:00 |
|
|
c0e21315e7
|
easyrsa gen-dh
|
2022-03-24 23:27:35 +00:00 |
|
|
5b873aed18
|
add git-flow
|
2022-03-24 22:56:29 +00:00 |
|
|
46fa347451
|
fix common getters
|
2022-03-24 15:51:36 +00:00 |
|
|
437bc570e4
|
Endpoint POST api/dn
|
2022-03-23 15:44:35 +00:00 |
|
|
ac6e506486
|
back population
|
2022-03-23 15:30:22 +00:00 |
|
|
c4ad9a8e40
|
Error 404
|
2022-03-23 15:27:41 +00:00 |
|
|
814a19d864
|
nullables + Type hints
|
2022-03-23 15:00:35 +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 |
|
|
f886f9e9dc
|
add User.is_admin()
|
2022-03-23 13:23:33 +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 |
|
|
5dce05816f
|
minor DB refactoring
|
2022-03-22 16:29:02 +00:00 |
|
|
12d39bb923
|
experiments no longer needed
|
2022-03-22 00:57:09 +00:00 |
|
|
f671e1efa9
|
crude EasyRSA class
|
2022-03-22 00:34:06 +00:00 |
|
|
e3acc9b7e0
|
User update
|
2022-03-20 13:14:12 +00:00 |
|
|
98cdc43bb2
|
poetry update
|
2022-03-20 04:01:00 +00:00 |
|
|
692bf0ef63
|
make User.authenticate an instance function
|
2022-03-20 04:00:14 +00:00 |
|
|
ecb97df3d6
|
revert main.py
|
2022-03-20 03:59:25 +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 |
|
|
c5e388aed4
|
jwt secret generation
|
2022-03-20 02:25:53 +00:00 |
|
|
e9d6ad3811
|
data_dir setting
|
2022-03-20 02:25:42 +00:00 |
|
|
f9762d4a54
|
brevity
|
2022-03-20 01:37:27 +00:00 |
|
|
00bdf88b6e
|
Connection.use()
|
2022-03-20 00:12:56 +00:00 |
|
|
21411694e8
|
give admin user "admin" capability
|
2022-03-20 00:12:37 +00:00 |
|
|
e955927644
|
doc
|
2022-03-19 23:56:21 +00:00 |
|
|
54c5e7ae8a
|
less messy cap unification
|
2022-03-19 23:56:11 +00:00 |
|
|
1c1ea694d1
|
don't make everyone an admin :)
|
2022-03-19 19:24:43 +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 |
|
|
b53aab012d
|
double user creation fail
|
2022-03-19 18:06:17 +00:00 |
|
|
b70806195e
|
"install" endpoint
|
2022-03-19 17:11:52 +00:00 |
|
|
b38216a223
|
secret generation on startup
|
2022-03-19 16:57:25 +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 |
|
|
900131fae8
|
add_user data into req body
|
2022-03-19 03:31:41 +00:00 |
|
|
d66ce5a026
|
add mysql support
|
2022-03-19 03:31:15 +00:00 |
|
|
4959f1987c
|
some renames
|
2022-03-19 02:38:32 +00:00 |
|
|
ba68692b9d
|
more asyncio
|
2022-03-19 02:28:18 +00:00 |
|
|
6e9cf9f920
|
redoc URL
|
2022-03-19 02:23:29 +00:00 |
|
|
2e9093caaf
|
JWT handling
|
2022-03-19 02:22:49 +00:00 |
|
|
affff321ab
|
gitkeep tmp dir
|
2022-03-19 02:22:37 +00:00 |
|
|
3cc29d4fd8
|
/user/auth and GET /user/current working
|
2022-03-19 00:38:57 +00:00 |
|
|
05679409a5
|
double code
|
2022-03-18 23:48:33 +00:00 |
|
|
b69bbe67bc
|
db importing
|
2022-03-18 23:46:17 +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 |
|
|
98c89991b4
|
pydantic settings, improved scoping
|
2022-03-18 22:43:42 +00:00 |
|
|
d5b39db400
|
vs code on save
|
2022-03-18 22:39:52 +00:00 |
|
|
d9ebd7db0b
|
capability handling
|
2022-03-18 19:15:45 +00:00 |
|
|
4a6f8e43ef
|
imports
|
2022-03-18 18:24:09 +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 |
|
|
6ed2324c71
|
sqlite viewer in devcontainer
|
2022-03-17 22:48:11 +00:00 |
|
|
0607e0383c
|
more SQL Alchemy
|
2022-03-17 22:47:31 +00:00 |
|
|
c778e2aa98
|
VSCode launch config
|
2022-03-17 17:06:23 +00:00 |
|
|
45297bb80f
|
peewee -> sqlalchemy (kind of working)
|
2022-03-17 17:06:00 +00:00 |
|
|
f89faf2d44
|
eliminate db.DB
|
2022-03-16 16:25:03 +00:00 |
|
|
e9785f0076
|
runtime database define
|
2022-03-16 14:58:02 +00:00 |
|
|
c8ede06c26
|
cryptContext source
|
2022-03-16 14:16:56 +00:00 |
|
|
2861b2fb0d
|
database creation
|
2022-03-16 14:10:49 +00:00 |
|
|
a8815a193f
|
config routing
|
2022-03-16 13:28:15 +00:00 |
|
|
162d1729d1
|
name collision
|
2022-03-16 00:59:33 +00:00 |
|
|
663196c493
|
default values and /install/config routing
|
2022-03-16 00:51:40 +00:00 |
|
|
d136363256
|
config handling
|
2022-03-16 00:23:57 +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 |
|
|
a35aaa388c
|
move create_db to "install" router
|
2022-03-15 17:38:24 +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 |
|
|
00381f6bff
|
lint
|
2022-03-14 00:10:10 +00:00 |
|
|
073bab1b9d
|
VS Code Python 3.10 boilerplate for API
|
2022-03-13 23:38:17 +00:00 |
|