@protobase/cli 0.112.2 → 0.113.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.113.1",
|
|
4
4
|
"description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@better-auth/core": "^1.7.12",
|
|
45
45
|
"@hono/node-server": "^2.1.3",
|
|
46
|
-
"@protobase/config": "0.
|
|
47
|
-
"@protobase/layout": "0.
|
|
48
|
-
"@protobase/query": "0.
|
|
49
|
-
"@protobase/schema": "0.
|
|
50
|
-
"@protobase/server": "0.
|
|
51
|
-
"@protobase/ui": "0.
|
|
52
|
-
"@protobase/workflows": "0.
|
|
46
|
+
"@protobase/config": "0.113.1",
|
|
47
|
+
"@protobase/layout": "0.113.1",
|
|
48
|
+
"@protobase/query": "0.113.1",
|
|
49
|
+
"@protobase/schema": "0.113.1",
|
|
50
|
+
"@protobase/server": "0.113.1",
|
|
51
|
+
"@protobase/ui": "0.113.1",
|
|
52
|
+
"@protobase/workflows": "0.113.1",
|
|
53
53
|
"@react-email/render": "^2.1.0",
|
|
54
54
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
55
55
|
"@sentry/vite-plugin": "^11.10.0",
|
|
@@ -96,7 +96,7 @@ The store's migrations then make nothing of the user table, which a migration of
|
|
|
96
96
|
| `PROTOBASE_CORS_ORIGINS` | other websites whose browser code may call the API, `*` or comma separated http and https origins, passed by the platform; see [CORS](api.md#cors) |
|
|
97
97
|
| `PROTOBASE_SMTP_URL`, `PROTOBASE_MAIL_FROM` | the mail server and sender for [password reset](#password-reset), [emailed sign-in codes](#emailed-sign-in-codes), emailed [two-factor](#two-factor-authentication) codes and [open sign-up](#open-sign-up), passed by the platform; all four are off without them |
|
|
98
98
|
| `PROTOBASE_APP_NAME` | the app's name, passed by the platform: it overrides `name` |
|
|
99
|
-
| `PROTOBASE_SIGN_IN_ISSUER`, `PROTOBASE_SIGN_IN_CLIENT_ID`, `PROTOBASE_SIGN_IN_CLIENT_SECRET` | the [platform sign-in provider](#platform-sign-in-providers) for people who have an account, passed by the platform; off without them. `PROTOBASE_SIGN_IN_PROVIDER`, `PROTOBASE_SIGN_IN_NAME`, `PROTOBASE_SIGN_IN_AUTHORIZATION_PARAMS`, `PROTOBASE_SIGN_IN_HIDDEN`, `PROTOBASE_SIGN_IN_BUTTON` and `PROTOBASE_SIGN_IN_DEVICES` are optional, and `PROTOBASE_SIGN_IN_TOKENS=true` turns on its [token sign-in](#token-sign-in). `
|
|
99
|
+
| `PROTOBASE_SIGN_IN_ISSUER`, `PROTOBASE_SIGN_IN_CLIENT_ID`, `PROTOBASE_SIGN_IN_CLIENT_SECRET` | the [platform sign-in provider](#platform-sign-in-providers) for people who have an account, passed by the platform; off without them. `PROTOBASE_SIGN_IN_PROVIDER`, `PROTOBASE_SIGN_IN_NAME`, `PROTOBASE_SIGN_IN_AUTHORIZATION_PARAMS`, `PROTOBASE_SIGN_IN_HIDDEN`, `PROTOBASE_SIGN_IN_BUTTON` and `PROTOBASE_SIGN_IN_DEVICES` are optional, and `PROTOBASE_SIGN_IN_TOKENS=true` turns on its [token sign-in](#token-sign-in). `PROTOBASE_SIGN_IN_<ID>_ISSUER` and so on add [more providers](#more-than-one-provider), each named by its id |
|
|
100
100
|
| `PROTOBASE_OPERATOR_ISSUER`, `PROTOBASE_OPERATOR_CLIENT_ID`, `PROTOBASE_OPERATOR_CLIENT_SECRET` | the [operator provider](#operator-provider) its staff sign in with to sign in as people, passed by the platform; staff sign-in is off without them. `PROTOBASE_OPERATOR_NAME` and `PROTOBASE_OPERATOR_GROUP` are optional |
|
|
101
101
|
| `PROTOBASE_TRUSTED_PROXIES` | the proxies in front of `protobase serve`, addresses or CIDR ranges, comma separated, such as `172.30.87.1`, the Docker network's gateway in the [compose template](../guides/deploy.md#compose-template); see [Client addresses](#client-addresses) |
|
|
102
102
|
|
|
@@ -616,20 +616,20 @@ auth: { signInProviders: [] }
|
|
|
616
616
|
|
|
617
617
|
### More than one provider
|
|
618
618
|
|
|
619
|
-
Each further provider takes the same variables with its
|
|
619
|
+
Each further provider takes the same variables with its id after `PROTOBASE_SIGN_IN_`, in upper case with `_` for `-`: `PROTOBASE_SIGN_IN_PHONE_ISSUER`, `PROTOBASE_SIGN_IN_PHONE_CLIENT_ID` and so on for the provider `phone`, `PROTOBASE_SIGN_IN_ACME_SSO_ISSUER` for `acme-sso`. The name gives the id, so such a provider takes no `_PROVIDER`, and adding or removing one leaves the others as they are. The unnamed variables stay one provider of their own, so an app with one provider is configured as before, and the named ones need not have it. Every provider is checked on its own: a token posted under a provider's id is verified against that provider's issuer, keys and client id alone, and a [token sign-in](#token-sign-in) is kept as used by its issuer.
|
|
620
620
|
|
|
621
621
|
```sh
|
|
622
622
|
PROTOBASE_SIGN_IN_ISSUER=https://auth.example.com
|
|
623
623
|
PROTOBASE_SIGN_IN_CLIENT_ID=erp-example-com
|
|
624
624
|
PROTOBASE_SIGN_IN_CLIENT_SECRET=...
|
|
625
625
|
PROTOBASE_SIGN_IN_PROVIDER=github
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
PROTOBASE_SIGN_IN_2_TOKENS=true
|
|
626
|
+
PROTOBASE_SIGN_IN_PHONE_ISSUER=https://id.example.com # the provider phone, for token sign-in alone
|
|
627
|
+
PROTOBASE_SIGN_IN_PHONE_TOKENS=true
|
|
629
628
|
```
|
|
630
629
|
|
|
631
|
-
- **Ids:** each provider has an id of its own; two with one id stop the app at start
|
|
632
|
-
- **
|
|
630
|
+
- **Ids:** each provider has an id of its own; two with one id stop the app at start, such as `PROTOBASE_SIGN_IN_PROVIDER=phone` next to `PROTOBASE_SIGN_IN_PHONE_ISSUER`. So does a named set without its `_ISSUER`, a name that is no provider id, such as the numbered `PROTOBASE_SIGN_IN_2_ISSUER` of earlier versions, or a named `_PROVIDER`.
|
|
631
|
+
- **Order:** the unnamed provider comes first, then the named ones in order of their id.
|
|
632
|
+
- **Names:** `name` (`PROTOBASE_SIGN_IN_NAME`, `PROTOBASE_SIGN_IN_PHONE_NAME`) is what people see, apart from the id, so two providers may show the same name.
|
|
633
633
|
- **Fixed authorization parameters:** `PROTOBASE_SIGN_IN_AUTHORIZATION_PARAMS` (`authorizationParams` in the config), written as `name=value&other=value`, goes on every authorization request to that provider as given, such as a parameter naming which of its own sign-in methods it must use. A client cannot change or add to them: a sign-in or link with a platform provider that brings `additionalParams` of its own answers `400 AUTHORIZATION_PARAMS_FIXED`. The parameters the sign-in sets itself (`state`, `client_id`, `redirect_uri`, `response_type`, `scope`, `nonce`, `code_challenge`, `code_challenge_method`) cannot be fixed; naming one stops the app at start.
|
|
634
634
|
- **No button:** `PROTOBASE_SIGN_IN_BUTTON=false` (`button: false`) keeps "Continue with {name}" off the sign-in page for a provider with pages. People still sign in through its pages when something sends them there: a [sign-in link](#sign-in-links-and-connected-accounts) (`?sign-in=<provider>`), or a redirect another app starts. `GET /api/auth/status` still lists it in `socialProviders`, so links work, and marks it `button: false` in `platformProviders`. A provider of [token sign-in](#token-sign-in) alone has no button anyway, and naming one stops the app at start. The account page's connected accounts follow `hidden`, not this.
|
|
635
635
|
- **Kept off the account page:** `PROTOBASE_SIGN_IN_HIDDEN=true` (`hidden: true`) keeps people's links to that provider off the account page: the connected accounts do not list it, `/api/auth/list-accounts` leaves its links out, and connecting it, or disconnecting one of its links by its id, answers `403 PROVIDER_ACCOUNT_HIDDEN`. The link still signs in, and goes when the person is deleted. `GET /api/auth/status` marks it `hidden: true` in `platformProviders`.
|
|
@@ -447,7 +447,7 @@ Serves the API of a bundle from `protobase build` and owns the process around it
|
|
|
447
447
|
| `PROTOBASE_SMTP_URL` | the SMTP server for password-reset mail, emailed sign-in and two-factor codes and the app's own [email](email.md), credential included: `smtp://user:password@host:587` (STARTTLS required, `?requireTLS=false` sends in plaintext, see [Email](email.md#configuration)) or `smtps://...:465`; without it they are off ([Password reset](auth.md#password-reset), [Emailed sign-in codes](auth.md#emailed-sign-in-codes)) |
|
|
448
448
|
| `PROTOBASE_MAIL_FROM` | the sender of that mail, a plain address such as `noreply@admin.example.com`; set with `PROTOBASE_SMTP_URL` or not at all |
|
|
449
449
|
| `PROTOBASE_APP_NAME` | the app's name, such as `Property Finder`: what its auth emails, its sidebar, its browser tabs and the [installed app](installable-app.md) call it, and the sender's display name of its mail, over the config's [`name`](config/app.md#name) |
|
|
450
|
-
| `PROTOBASE_SIGN_IN_ISSUER`, `PROTOBASE_SIGN_IN_CLIENT_ID`, `PROTOBASE_SIGN_IN_CLIENT_SECRET` | an OpenID Connect provider people who have an account can sign in with; all three or none. `PROTOBASE_SIGN_IN_PROVIDER`, `PROTOBASE_SIGN_IN_NAME`, `PROTOBASE_SIGN_IN_AUTHORIZATION_PARAMS`, `PROTOBASE_SIGN_IN_HIDDEN`, `PROTOBASE_SIGN_IN_BUTTON` and `PROTOBASE_SIGN_IN_DEVICES` are optional, `PROTOBASE_SIGN_IN_TOKENS=true` turns on [token sign-in](auth.md#token-sign-in), and `
|
|
450
|
+
| `PROTOBASE_SIGN_IN_ISSUER`, `PROTOBASE_SIGN_IN_CLIENT_ID`, `PROTOBASE_SIGN_IN_CLIENT_SECRET` | an OpenID Connect provider people who have an account can sign in with; all three or none. `PROTOBASE_SIGN_IN_PROVIDER`, `PROTOBASE_SIGN_IN_NAME`, `PROTOBASE_SIGN_IN_AUTHORIZATION_PARAMS`, `PROTOBASE_SIGN_IN_HIDDEN`, `PROTOBASE_SIGN_IN_BUTTON` and `PROTOBASE_SIGN_IN_DEVICES` are optional, `PROTOBASE_SIGN_IN_TOKENS=true` turns on [token sign-in](auth.md#token-sign-in), and `PROTOBASE_SIGN_IN_<ID>_ISSUER` and so on add more providers, each named by its id ([Platform sign-in providers](auth.md#platform-sign-in-providers)) |
|
|
451
451
|
| `PROTOBASE_OPERATOR_ISSUER`, `PROTOBASE_OPERATOR_CLIENT_ID`, `PROTOBASE_OPERATOR_CLIENT_SECRET` | the OpenID Connect provider of the operator's staff, for [staff sign-in](auth.md#staff-sign-in) as people of the app; all three or none. `PROTOBASE_OPERATOR_NAME` and `PROTOBASE_OPERATOR_GROUP` are optional ([Operator provider](auth.md#operator-provider)) |
|
|
452
452
|
| `PROTOBASE_ORIGINS`, `PROTOBASE_PASSKEY_DOMAIN` | the other origins the app is served on, comma separated, and the host new passkeys are made for ([Several origins](auth.md#several-origins)) |
|
|
453
453
|
| `PROTOBASE_CORS_ORIGINS` | other websites whose browser code may call the API, `*` or comma separated http and https origins ([CORS](api.md#cors)) |
|