Andrew Gundersen
44f3192b78
Add multi-user auth with sessions and login UI
- auth: POST /auth validates PAM, returns session token
- auth: GET /me validates Bearer token, returns username
- auth: POST /logout destroys session
- auth: POST /users creates Linux user via useradd+chpasswd
- session.c: in-memory token store (1024 slots, pthread mutex, /dev/urandom tokens)
- user.c: fork/exec useradd + chpasswd with username validation
- ui: login overlay shown until authenticated (x-cloak)
- ui: token persisted in sessionStorage, validated on page load
- ui: username displayed in dock after login
- ui: apps only load after successful auth
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-02-27 11:33:07 -05:00 |
|
apps
|
Initial commit
|
2026-02-25 15:35:31 -05:00 |
|
auth
|
Add multi-user auth with sessions and login UI
|
2026-02-27 11:33:07 -05:00 |
|
dock
|
Add dock service, provision README, MIT License
|
2026-02-26 23:51:56 -05:00 |
|
ui
|
Add multi-user auth with sessions and login UI
|
2026-02-27 11:33:07 -05:00 |
|
.DS_Store
|
Initial commit
|
2026-02-25 15:35:31 -05:00 |
|
LICENSE
|
Add dock service, provision README, MIT License
|
2026-02-26 23:51:56 -05:00 |
|
README.md
|
Add dock service, provision README, MIT License
|
2026-02-26 23:51:56 -05:00 |