Commit Graph

40 Commits

Author SHA1 Message Date
357d0d0d65 need to check a thing 2026-05-20 16:33:44 +02:00
fe91adad08 Add doorrouter 2026-05-19 19:57:33 +02:00
0d31b9c146 Merge branch 'tests' 2026-05-19 17:28:18 +02:00
3246081b81 Add pytest-cov 2026-05-18 21:15:12 +02:00
3e86fe223e Explain problem; will fix later maybe 2026-05-18 21:04:17 +02:00
56c8d38cde almost all tests run now 2026-05-18 21:03:47 +02:00
1caffff30d Vscode test suite 2026-05-18 21:03:05 +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
5c2e58d5d0 Fix deprecation warning by changing on_event to asynccontesxtmanager 2026-05-16 17:10:40 +02:00
0337a90f15 Merge get_user into authenticate_user, it was only doing one db call 2026-05-16 17:03:33 +02:00
235420bc3e Fix testing harness 2026-05-16 17:02:40 +02:00
aafcdcc6de Needed to load 2026-05-16 16:27:25 +02:00
4e2467c45b Add ai generated tests 2026-05-16 16:27:06 +02:00
436f27ef09 Add test deps 2026-05-16 16:26:47 +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
2a211c2cf0 Update README 2026-04-25 18:33:49 +02:00
5d443876ab AccessAuthManager: add getting [all|one] accessauth, patching, deleting, unassigning from group 2026-04-25 18:30:16 +02:00
67d4780140 Add AccessAuthManager mit erstellen, zuweißen und auflist funktionen 2026-04-25 16:58:29 +02:00
f5a5cb378e Create and use get_session, add_and_refresh function 2026-04-25 14:51:35 +02:00
f96894db8c Add groupManager;
reduce cardmanager to creating and deleting for now;
fix typo
2026-04-24 16:24:37 +02:00
2de444c8b0 Change userManager to modern sqlmodel syntax 2026-04-24 15:31:23 +02:00
ab222533ed Make db creation a explicit on startup instead of import 2026-04-24 15:30:44 +02:00
72aa859af0 Update readme and plan 2026-04-23 22:51:20 +02:00
22e57996c2 Finish sqlmodel migration
- merge card.py, user.py and dbmodels.py into models.py
- deduplicate
- change responsemodels in the manager functions
- correct inports
2026-04-23 22:41:48 +02:00
ba0f036535 make some attributes optional 2026-04-18 23:41:14 +02:00
287235243a switch orm to sqlmodel 2026-04-18 23:40:44 +02:00
000922a7a6 Add python-desfire dependency 2026-04-16 12:51:42 +02:00
083e3f6967 Add readme 2026-04-15 10:47:31 +02:00
1434d6f541 change structure to make package build 2026-04-15 10:04:23 +02:00
e3eea84b2b Add flake.nix + package with uv 2026-04-15 09:45:03 +02:00
0efb2e8edb Add basic card management 2026-04-15 09:27:26 +02:00
eba10638fa Better organisation 2026-04-12 23:31:39 +02:00
aa8247a083 Set up basic user user endpoints 2026-04-12 23:11:34 +02:00
363f642bff Set up nix-shell + fastapi base 2026-04-12 21:55:13 +02:00
12914f8169 Update plan 2026-04-12 21:54:28 +02:00
c688e57184 Plan erstellen 2026-04-01 09:05:45 +02:00