Commit Graph
30 Commits
Author SHA1 Message Date
LeoVasanko 37640ab42b Add permissions to orgs and roles (in DB-agnostic API). 2025-08-13 01:21:37 +00:00
LeoVasanko c69b09ceec Cleaner formatting 2025-08-13 01:21:05 +00:00
LeoVasanko 7e45bba612 Almost complete org/permission handling. Much cleanup, bootstrap works. 2025-08-08 01:58:12 +00:00
LeoVasanko 2505f96dde Users always belong to one Org. Implement a DB function to fetch all data relevant to a session. 2025-08-07 22:42:49 +00:00
LeoVasanko 6a7edbb055 Bootstrapping cleanup, avoid double operations. 2025-08-07 12:45:12 +00:00
LeoVasanko 2c951f6be1 Bootstrap cleanup 2025-08-07 11:56:13 +00:00
LeoVasanko 62cf384cfa Bootstrap code cleanup. 2025-08-07 02:39:44 +00:00
LeoVasanko df377c4a14 Globals restructured to their own module. Origin and RP definition. 2025-08-07 01:23:35 +00:00
LeoVasanko 0578706bdf Initial bootstrap to add admin user 2025-08-07 00:16:37 +00:00
LeoVasanko 82150be650 Error handling cleanup for WS too. 2025-08-06 22:53:13 +00:00
LeoVasanko 5a55417dad Centralised error handling & convenience. 2025-08-06 22:44:57 +00:00
LeoVasanko 4ca6eb9994 Add New Passkey and Add New Device flows fixed. 2025-08-06 22:14:04 +00:00
LeoVasanko b255362946 Refactor to not use status: success, but HTTP codes, and renamed the error key to detail to match FastAPI's own. 2025-08-06 22:09:55 +00:00
LeoVasanko c8bb2ab12e Checkpoint, fixing reset token handling broken in earlier edits. 2025-08-06 21:55:14 +00:00
LeoVasanko 1440727955 Add organisations on DB 2025-08-06 00:16:02 +00:00
LeoVasanko e035067ffb Change filename to passkey-auth.sqlite 2025-08-05 21:24:38 +00:00
LeoVasanko 8b559e0ad9 Allow externally initialized DB for FastAPI app lifespan. 2025-08-05 21:20:32 +00:00
LeoVasanko a4101e708a Separated session management from its FastAPI-dependent parts, creating authsession.py on main level.
Startup/main/scripts cleanup, now runs with passkey-auth command that takes CLI arguments.
2025-08-05 21:02:49 +00:00
LeoVasanko 9d0c97f403 Finish DB cleanup/refactoring. Working now. 2025-08-05 20:26:35 +00:00
LeoVasanko af8dea1a02 Database cleanup, base class, separated from FastAPI app. 2025-08-05 19:55:31 +00:00
LeoVasanko fa8c2c5ba8 DB refactor (currently broken) 2025-08-05 18:41:07 +00:00
LeoVasanko 71db80c7ea Everything works. Minor adjustments on frontend and backend for the new API. 2025-08-02 19:41:42 +00:00
LeoVasanko f524b85f40 Fixes to backend API changes. The whole app is mostly functional. 2025-08-02 01:48:38 +00:00
LeoVasanko 9b82f77729 Major cleanup and refactoring of the backend (frontend not fully updated). 2025-08-02 00:32:27 +00:00
LeoVasanko f86406b4d4 Removal of JWT code, cleanup, using User dataclass rather than UserModel in APIs. 2025-07-28 11:44:26 +00:00
LeoVasanko fb898193e2 Late night hacking...? 2025-07-15 05:45:01 +00:00
LeoVasanko 69f68d6930 Database reworked simpler, JWTs replaced by sessions table and random tokens. Accessing Add device link is currently broken. 2025-07-15 05:29:48 +00:00
LeoVasanko 6a2c6f7ed0 Refactoring reset and session tokens, currently broken. 2025-07-15 04:10:02 +00:00
LeoVasanko 158115f172 Refactor to get user info from a single endpoint 2025-07-15 00:30:10 +00:00
LeoVasanko 4b20a53aa2 A lot of cleanup, restructuring project directory. 2025-07-14 23:54:04 +00:00