restitux 22f9405229 backend: add user management system with SQLite database
Add authentication and authorization infrastructure:
- SQLite database (db.rs) with users, sessions, and app permissions tables
- Password hashing with argon2
- Session-based auth with random 256-bit tokens
- Auth middleware (session validation) and admin middleware
- Login/logout/me endpoints
- Admin CRUD endpoints for user and permission management
- Auto-seed default admin user on first run
- 23 unit tests covering all DB operations

Existing API endpoints are not yet gated behind auth.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 02:34:02 +00:00
2025-06-26 19:35:13 -06:00
2025-06-26 19:35:13 -06:00
2025-06-26 19:35:13 -06:00
2025-06-26 19:35:13 -06:00
S
Description
No description provided
744 KiB
Languages
Rust 70.2%
TypeScript 22.3%
Svelte 5.7%
CSS 0.9%
JavaScript 0.7%
Other 0.2%