Commit Graph
374 Commits
Author SHA1 Message Date
LeoVasanko ad4bde5d0d Remodel reset token handling due to browsers sometimes refusing to set the cookie when opening the link (from another site). 2025-08-31 03:54:17 +00:00
LeoVasanko 54cef0f9d6 Fixing cascade. 2025-08-31 02:07:32 +00:00
LeoVasanko d229ed267c Actually usable admin panel 2025-08-30 10:38:22 +00:00
LeoVasanko 9402aae829 Almost usable admin panel 2025-08-30 09:54:51 +00:00
LeoVasanko 75bcdb8b18 Basic navigation between auth and user pages. 2025-08-30 08:50:37 +00:00
LeoVasanko 6c6e62cd5b Fix proxying so that Vite dev mode autoreloads. 2025-08-30 08:49:26 +00:00
LeoVasanko 395ecdbd19 Major changes to server startup. Admin page tuning. 2025-08-30 08:41:38 +00:00
LeoVasanko 6840f319eb Instruct type checker 2025-08-30 07:03:14 +00:00
LeoVasanko ff9bb1558d Drafting admin app (frontend) 2025-08-13 03:24:27 +00:00
LeoVasanko ee3708105b Support for adding permissions on roles and orgs. 2025-08-13 03:13:35 +00:00
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 039613a8b3 Cleaner error message on aborted Passkey operations. 2025-08-07 00:00:23 +00:00
LeoVasanko 04953c7903 Frontend component selection logic simplified. 2025-08-06 23:33:34 +00:00
LeoVasanko 764bbd1115 Avoid loading user info twice to show profile. 2025-08-06 22:57:41 +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 54056c7851 gitignore 2025-08-06 00:15:48 +00:00
LeoVasanko e035067ffb Change filename to passkey-auth.sqlite 2025-08-05 21:24:38 +00:00
LeoVasanko 053fd8b58a Remove extra file 2025-08-05 21:22:59 +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 3a1659ac20 Device link cleanup. 2025-08-02 20:13:31 +00:00
LeoVasanko be8c553e01 Device addition link tuning. QR code larger and better handling while loading. 2025-08-02 20:11:28 +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 d0bae33912 No underline on link CSS 2025-08-02 01:47:59 +00:00
LeoVasanko be9659e8dd No server secret file needed anymore. 2025-08-02 01:17:20 +00:00
LeoVasanko f1ef7e43cc Frontend adjusted for the new API. 2025-08-02 01:16:10 +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