Commit Graph
201 Commits
Author SHA1 Message Date
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
LeoVasanko 286a5180a4 Nxing/Caddy forward_auth support. Various fixes to bugs created in earlier edits. Vite server needs different base in dev mode, fixed. 2025-07-14 04:54:53 +00:00
LeoVasanko e7192e078e Build frontend as part of Python build 2025-07-14 02:23:07 +00:00
LeoVasanko b572039a2f Delete leftover files from early version 2025-07-14 02:06:32 +00:00
LeoVasanko 1850f9b27f Move the whole app under /auth/, fix static build. 2025-07-14 02:03:15 +00:00
LeoVasanko c4bf411404 Use origin from requests, rather than hardcode it. This is still constrained to rp_id and its subdomains, so it should be fine for security, also WebSockets make sure the origin doesn't change between stages of the chat. 2025-07-14 00:55:01 +00:00
LeoVasanko 611f1ddd40 Rewritten frontend with Vue 2025-07-14 00:41:08 +00:00
LeoVasanko 6142023ffe Major cleanup, refactoring, device registrations. 2025-07-14 00:40:22 +00:00
LeoVasanko 99d072c801 Improved login/registration message handling, display more useful error messages. 2025-07-11 02:16:09 +00:00
LeoVasanko 92f44ee390 carolina. 2025-07-09 06:05:05 +00:00
LeoVasanko f0ee13677d Use async/await, move all css/js to separate files. 2025-07-08 18:33:46 +00:00
LeoVasanko 62aa58e3de Remove semicolons 2025-07-08 18:10:47 +00:00
LeoVasanko 3135def2d7 Refactoring in progress, needs cleanup. 2025-07-08 03:00:02 +00:00
LeoVasanko ef01fde84a Mostly working, saving. 2025-07-08 01:19:39 +00:00
LeoVasanko b358afdfbb More refactoring. Prevent registering another key on the same authenticator for the same user. 2025-07-07 23:20:28 +00:00
LeoVasanko 304b6b8cef Major refactor: HTTP-only cookies, passkey management, and UI improvements
- Refactor session management from WebSocket tokens to HTTP-only cookies
- Move user/credential endpoints from WebSocket to HTTP REST API
- Add comprehensive passkey management (add/delete with safety checks)
- Implement AAGUID-based authenticator info with icons and names
- Add human-readable date formatting and clean grid layout
- Create modular architecture with session_manager, api_handlers, aaguid_manager
2025-07-07 07:45:33 +00:00
LeoVasanko 68cb259aab Update gitignore. 2025-07-07 07:42:54 +00:00
LeoVasanko fab977f2f5 All TODO items resolved. 2025-07-07 07:41:35 +00:00
LeoVasanko dec0deafc0 Finish refactoring, working. 2025-07-07 00:06:22 +00:00
LeoVasanko e0beffcfb2 Database refactoring 2025-07-06 23:41:49 +00:00
LeoVasanko 160310acf6 Refactoring for simplicity, added last login/verification tracking. 2025-07-06 22:34:32 +00:00
LeoVasanko d643648455 Move gitignore to root 2025-07-05 05:10:15 +00:00
LeoVasanko 5a8868d58c General cleanup and minor improvements. Registration and auth currently working. 2025-07-05 05:08:56 +00:00
LeoVasanko 3f373a9a8a Refactoring done, bugs gone. 2025-07-04 06:46:05 +00:00