Updates the default PORT across backend, Dockerfile, README docs, the
Android client's fallback URLs/placeholders, and the frontend dev proxy.
Touched files also pick up line-ending normalization (CRLF->LF) with no
other content changes.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
GET /api/info reports name/tabs/mount types (empty - state lives in Postgres,
no shared file mounts) so ProjectConfigurator's Projects workspace can
register this instance from just a URL.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Replaces locally-duplicated session-cookie handling, input
normalization, and AuthGuard-error translation with
shared/backend/authproxy, shared with Bitmagnet/GameStream/media-backend
and others doing the same AuthGuard-proxy pattern.
Accounts are centralized in AuthGuard now, so this project's own "first
launch, create the admin account" flow needs to know whether AuthGuard
already has one - not just whether *this* project's local setup has been
claimed. A fresh instance pointed at an AuthGuard that already has a
superadmin (created via AuthGuard's own web UI, or a sibling project's
setup) was incorrectly still showing its own create-account form.
Both the status check and the setup/registration handler now also consult
AuthGuard's GET /api/setup-status (via the vendored authclient's new
SetupStatus method) before deciding: if AuthGuard already has an account,
show the login screen instead, and reject a setup attempt that reaches the
handler anyway (e.g. a stale page) the same way an already-claimed local
setup is rejected.
Also updates the vendored shared/backend/authclient to add PublicUser's
totp_enabled field (AuthGuard has reported it for a while; the client
just hadn't picked it up).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This project's own "break glass" admin reset never actually touched the
centralized AuthGuard account - it only printed a local one-time code and,
on confirm, wiped this project's local "setup completed" flag so its own
setup screen reappeared, leaving the real AuthGuard account untouched and
orphaned from this project's perspective. AuthGuard now has its own proper
superadmin reset in its web UI, which is where this recovery path belongs
going forward - having every integrated project also show a "Reset admin
account" link that does something different and doesn't actually solve
"I forgot my AuthGuard password" was confusing and redundant.
Removes the backend reset handlers, their routes, the local ResetManager
field/init, any local cleanup method that only existed to serve them, and
the frontend API calls plus the onRequestReset/onConfirmReset wiring that
made the shared AuthPage component's reset link appear.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Same pattern as GameStream (commit 6a46007), adapted for CollabTable
being genuinely multi-user (not single-admin): admin user management
(list/create/update/delete, role reassignment, superadmin protection)
is fully proxied to AuthGuard, which already enforces the same rules
CollabTable checked locally. Cookie forwarding, no local session token,
AUTHGUARD_URL optional (unset = auth fully disabled), transport
failures always surface as errAuthGuardUnavailable rather than ever
letting a request through - proven with live tests against a closed
socket.
CollabTable's device-sync API token feature (separate from browser
sessions) is deliberately left local-only regardless of AUTHGUARD_URL,
keyed by a new currentUserID helper (AuthGuard's id when enabled, the
shared placeholder id 0 when disabled) - a real, functional token
either way, not faked data.
Real bug found and fixed: api_tokens.user_id had a hard FK into the
local auth_users table, which would reject new tokens once accounts
stop being written locally. Dropped the now-invalid FK.
Known, accepted gap (same as GameStream): self-service profile editing
for non-admin accounts is lost, since AuthGuard only exposes an admin
endpoint, no self-edit. TOTP QR issuer branding now comes from AuthGuard
rather than CollabTable.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Added TOTP setup, enable, and disable functions to the API.
- Implemented admin reset request and confirmation functionalities.
- Updated AuthPage to handle new reset functionalities and TOTP inputs.
- Enhanced auth store to manage user creation, deletion, and listing.
- Improved AppShell and SettingsDialog to support user management features.
- Refactored API calls for better organization and clarity.
- Implemented CredentialsDialog for updating user credentials.
- Created auth store with functions for managing authentication state.
- Added HealthWidget to display server health status.
- Introduced health monitoring functionality with polling.
- Developed AppShell layout to manage authentication and loading states.
- Added SettingsDialog for user preferences including theme and language.
- Created utility functions for list management and data fetching.
- Implemented dashboard view mode preferences.
- Integrated search functionality for filtering lists.
- Established theme management with local storage support.
- Added utility functions for class name management.
- Configured SvelteKit for static site generation with fallback.
- Set up Vite for development with proxy support for API calls.
- Created About and List detail pages with data fetching and display.
- Added favicon and updated project configuration files.