DocsHTTP APIAuthentication

Authentication

Registration, login, session cookies, and logout.

Chronoverse uses browser-oriented session authentication rather than exposing service JWTs to public clients.

Register

POST /auth/register accepts email and password, creates the user, and issues session and CSRF cookies. Emails are trimmed and lowercased; registration passwords need 8–72 characters with a zxcvbn score of at least 3 and must not match the bundled common-password dictionary.

Login

POST /auth/login validates credentials and issues fresh cookies.

Invalid credentials return the same 401 Unauthorized response whether or not the email is registered.

Validate

POST /auth/validate verifies the current session and CSRF state. The dashboard initializes protected views with a fresh, session-authenticated GET /users.

Logout

POST /auth/logout removes both cookies and returns 204 No Content.

Internal authorization

The HTTP gateway signs authorization metadata for downstream gRPC services using Ed25519 keys. Service clients also use mTLS in the Compose topology.

SERVER_HOST_URL, SERVER_ALLOWED_ORIGINS, SERVER_SAME_SITE_MODE, session expiry, CSRF expiry, and the CSRF HMAC secret must match the public deployment origin.

Dashboard account changes

Use HTTPS in deployment or localhost for development. Keep browser site storage and Web Locks enabled so tabs on the dashboard origin can coordinate session-cookie changes. After an account change in another tab, select Continue to verify the current account before reopening protected views. This confirmation survives reload. Workflow lists start at the first page when you adopt a replacement account.

A definitive sign-in or registration rejection leaves the previous session cookie in place. Other tabs that paused can select Continue to verify that session again. Use Reconnect to recover an invalid dashboard coordination record by signing in.

If sign-out cannot be confirmed, the dashboard closes protected views. Use Reconnect to sign in again. Reconnecting does not confirm that the server revoked an earlier session.