ADR-0131: per-profile client sign-in for several clients on one machine
Foundation / checks (ecs) (push) Successful in 2m21s
Foundation / checks (deploy) (push) Successful in 4m9s
Foundation / checks (tsan) (push) Successful in 9m48s
Foundation / checks (client) (push) Successful in 19m17s
Foundation / checks (network) (push) Successful in 19m44s
Foundation / checks (checks) (push) Successful in 42m37s
Foundation / checks (postgres) (push) Successful in 45m40s
Foundation / postgres-tools (push) Successful in 30s
Foundation / server-image (push) Successful in 3m13s
Foundation / image (push) Successful in 3m27s

Only one client per machine could sign in: the saved login lived under a single
Credential Manager name, and Keycloak ignores prompt=select_account, so the
browser reused its single sign-on session. --profile NAME keeps one saved login
per profile (the default name is unchanged), and authorization asks for
prompt=login so the browser shows the login form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-15 17:35:53 -04:00
co-authored by Claude Opus 5.5
parent 898c921da8
commit a97f0c3fea
10 changed files with 79 additions and 16 deletions
+4 -1
View File
@@ -31,7 +31,10 @@ short notifications expire and can be dismissed.
After sign-in the client fetches a 10-minute grant from `grants.aeternalisgames.com`
and connects to the cellular DEV region. It renews the grant before expiry and after a
lost connection. **Play in DEV** reconnects while signed in. **Sign out** closes the
session and revokes the login. Only the region CA file is still read from the form.
session and revokes the login. `--profile NAME` keeps a separate saved login per
profile, so two clients on one machine can use two accounts; the browser always
shows the login form, so you choose the account. Start them one at a time: sign-in
uses loopback port 47600. Only the region CA file is still read from the form.
The manual endpoint and grant-bundle fields stay under "Manual connection
(developer grants)".
+14
View File
@@ -7661,3 +7661,17 @@ genesis commit id. The region deployment, the provision Job, the life-route cata
and the broker's default region and route name region 5. Region 4 and its history
stay in the stores, unserved. Checked with `deploy-policy-check.py`; provisioning
runs on the next full sync.
## 2026-10-15 — client sign-in profiles (CI pending)
Playtest finding: only one client per machine could sign in. The saved login lived
under one Credential Manager name, and Keycloak ignored `prompt=select_account`, so
the browser reused its single sign-on session. `--profile NAME` (1–32 of
`[A-Za-z0-9_-]`) gives each profile its own saved login under
`.../refresh-token/v1/<NAME>`. The default name is unchanged. Authorization now
asks for `prompt=login`.
Tests: `client-auth` covers profile validation, the credential names, the refusal
of an invalid profile, and `prompt=login` in the authorization URL. Executed
locally: WSL clang-19 `client-probe` with clang-tidy 14/14 plus the Xvfb X11
lifecycle check; MSVC `client-package` 18/18; clang-format 19.