Document app sign-out, removed defaults and origin checks
The README now says that Base checks its origins at start-up, that an uninstalled Welcome stays off, that installs keep their address when the slug or apps domain changes, and that internal/consumer gives apps a sign-out of their own. The README stays a whole-file copy-review row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+12
−1
README.md+12 −1
diff --git a/README.md b/README.md| index 3db7dec..e1b89c9 100644 |
| --- a/README.md |
| +++ b/README.md |
| @@ -57,7 +57,14 @@ To install apps, Base also needs to reach the Platform. Without these five and |
| - `BASE_PLATFORM_OPERATE_TOKEN` is a second one with the `operate` role. |
| A credential holds one role, so you need two. Both are account-wide: |
| create them without `--app`. |
| -- `BASE_APPS_DOMAIN` is the domain apps live under. |
| +- `BASE_APPS_DOMAIN` is the domain apps live under. Base checks at start-up |
| + that it and `BASE_ORIGIN` make addresses an app can accept sign-ins from: |
| + a hostname, not an IP address, and no `:443`. |
| + |
| +Base installs Welcome when it starts. If the owner uninstalls Welcome, Base |
| +remembers and leaves it off; installing it from the Store brings it back. |
| +An installed app keeps the address it was installed at, even if you change |
| +`BASE_SLUG` or `BASE_APPS_DOMAIN` later. |
| Outside loopback, Base sends mail through `CARLOS_SMTP_HOST` and |
| `CARLOS_SMTP_FROM`. |
| @@ -103,6 +110,10 @@ against them: |
| the base64 of that key's 65-byte public key. Check each assertion's |
| signature against the key its `kid` names. |
| +`internal/consumer` does all of this for a Go app, and adds a sign-out |
| +(`POST /auth/signout`) that ends the app's own session. Give people a button |
| +for it: signing out of Base doesn't sign them out of your app. |
| + |
| Nothing in Base is specific to one app. `internal/scratchpad` is the small |
| example to copy, and its README says who can use it: anyone the Base that |
| installed it vouches for, with no roles of their own. |