docs: Accounts plan, handover and changelog after the install work and Playwright run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# Accounts 1.0.0 — one sign-in for every product of a church
|
||||
|
||||
Phase **3** of [ROADMAP-v3.md](./ROADMAP-v3.md) (§3, §8, §9; decisions 2, 14, 15, 17). Written
|
||||
2026-11-18. **Decisions confirmed 2026-11-18** (all as proposed). **Partly built 2026-11-18** on
|
||||
`feat/accounts-1.0` (not merged): the app, contracts 1.5.0, `packages/auth-client`, `packages/ui` and
|
||||
the deploy hooks. Not yet: Hub 2.3.0, `crosscode install`/`add` for Accounts, the Playwright run and
|
||||
the VM test. See [Changes while building](#changes-while-building).
|
||||
2026-11-18. **Decisions confirmed 2026-11-18** (all as proposed). **Built 2026-11-18** on branches (not
|
||||
merged): `feat/accounts-1.0` here (the app, contracts 1.5.0, `packages/auth-client`, `packages/ui`,
|
||||
`crosscode install`/`add`, agent 1.1.0), `feat/accounts-install` in events-hub (Hub 2.3.0),
|
||||
`feat/one-sign-in` in crosscode-site. Not yet: the VM test and a real Postgres (on another device). See [Changes while building](#changes-while-building).
|
||||
|
||||
**What Accounts is:** a small OpenID Connect provider per church, at `accounts.<church's address>`.
|
||||
People sign in there once and are signed in to all of the church's products. Members never see it
|
||||
@@ -318,6 +318,19 @@ phone-first.
|
||||
logout; `LINKS_ALLOW_PRIVATE` (testing only) lets it reach 127.0.0.1.
|
||||
6. **Accounts' part of a church export** is `accounts.json` (the church profile and people, no
|
||||
secrets) next to the other products' files.
|
||||
8. **The interaction address is `/api/v2/interaction/<uid>`**, which sends the browser on to
|
||||
`/signin?uid=…`: oidc-provider scopes its interaction cookie to that address's path, so it has to
|
||||
be the API's path for the sign-in. Found by the Playwright run (with `/signin` a real browser
|
||||
never sent the cookie and every sign-in "expired"); the API tests' browser now honours cookie
|
||||
paths too. The address is absolute (`ACCOUNTS_URL`), and behind a proxy `TRUST_PROXY` must be on
|
||||
(it is in production) so the provider's own addresses use the public host.
|
||||
9. **Playwright runs without a database**: `e2e/server.ts` runs the real backend on the tests'
|
||||
in-memory database with a test product on `@crosscode/auth-client`; 8 tests on the real pages.
|
||||
10. **Installing** (§9): the Hub already gave a church its free Accounts licence with its first
|
||||
product and never billed it (Hub 2.0). Hub 2.3.0 adds Accounts to New install: the first
|
||||
product of a church (an `install` job), or next to its others on the same server (an
|
||||
`add-product` job). `crosscode install` takes one product at a time (events or accounts);
|
||||
`crosscode add <church> <product>` adds the next. Agent 1.1.0 runs both.
|
||||
7. **`/api/health` reads the version from package.json** (PM2 doesn't set npm's variables), so
|
||||
`crosscode deploy` can check it.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user