158b430235
[settings] fuck it, rework the settings again
...
this time using pydantic-settings as a base
- removed all os.getenv calls
- removed the secret_key default option
- reworked database loading, creating tables
- prob. something else also but its 4:30 and i have to sleep
2026-07-31 04:33:18 +02:00
3f20cdeed9
just_found_out_about_linters ( #17 )
...
This changed a bunch of code but no
Reviewed-on: #17
Co-authored-by: ahtlon <git@ahtlon.de >
Co-committed-by: ahtlon <git@ahtlon.de >
2026-07-29 02:46:50 +02:00
683cd9a545
[main.py] move settings stuff into its own import
...
also correct imports to use app namespace
2026-07-29 01:24:22 +02:00
17842a14fd
Fix tests using the new api root
2026-06-24 15:54:06 +02:00
5f0e5b1bbb
Move .env.example to the right place, fix login to also be at /api/v1
2026-06-24 15:37:32 +02:00
9985251584
Add testing keys in .env.example
2026-06-06 11:18:24 +02:00
9160b312c7
Fix the things i broke using logger.info
2026-05-23 20:35:12 +02:00
94d428c9d0
Change all instances of print() to logger.info()
2026-05-23 20:17:43 +02:00
e6a248529b
Fix test test_create_first_user()
2026-05-23 20:08:10 +02:00
30b86dad5e
Increase login time
2026-05-22 23:14:55 +02:00
46e883200e
Fix get_current_user and auth_is_admin creating their own db session instead of getting from get_session
2026-05-16 17:53:42 +02:00
6daf2345be
Error handling in following functions
2026-05-16 17:33:06 +02:00
e4b405cdbd
Revert "Merge get_user into authenticate_user, it was only doing one db call"
...
ups, das war ja doch von mehr verwendet...
This reverts commit 0337a90f15 .
2026-05-16 17:16:26 +02:00
a820431707
Fix accessToken with custom expiration
2026-05-16 17:12:13 +02:00
0337a90f15
Merge get_user into authenticate_user, it was only doing one db call
2026-05-16 17:03:33 +02:00
5941f38d2a
Secure all endpoints behind auth
2026-05-15 22:22:12 +02:00
cbc2526c14
Squashed commit of the following:
...
commit a6a5de4a35
Author: ahtlon <git@ahtlon.de >
Date: Fri May 15 20:47:45 2026 +0200
Auth working :)
commit 6ad50df3c2
Author: ahtlon <git@ahtlon.de >
Date: Fri May 8 13:17:32 2026 +0200
Implement auth
I basically copied this article https://fastapi.tiangolo.com/tutorial/security/oauth2-jwt
commit 6243618abb
Author: ahtlon <git@ahtlon.de >
Date: Fri May 8 12:18:56 2026 +0200
Add auth deps
2026-05-15 22:01:57 +02:00