@rubytech/create-maxy-code 0.1.473 → 0.1.474
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/__tests__/google-client-id-env.test.js +3 -2
- package/package.json +1 -1
- package/payload/platform/neo4j/schema.cypher +4 -1
- package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +14 -10
- package/payload/platform/plugins/docs/references/admin-ui.md +1 -1
- package/payload/platform/plugins/docs/references/google-guide.md +10 -6
- package/payload/platform/plugins/docs/references/voice-mirror-guide.md +2 -2
- package/payload/platform/plugins/google/.claude-plugin/plugin.json +1 -1
- package/payload/platform/plugins/google/PLUGIN.md +25 -14
- package/payload/platform/plugins/google/references/auth.md +250 -365
- package/payload/platform/plugins/voice-mirror/PLUGIN.md +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/index.js +3 -3
- package/payload/platform/plugins/voice-mirror/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/lib/voice-corpus.d.ts +14 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/lib/voice-corpus.d.ts.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/lib/voice-corpus.js +15 -0
- package/payload/platform/plugins/voice-mirror/mcp/dist/lib/voice-corpus.js.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/tools/voice-distil-profile.d.ts.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/tools/voice-distil-profile.js +3 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/tools/voice-distil-profile.js.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/scripts/smoke.mjs +51 -4
- package/payload/platform/plugins/voice-mirror/skills/voice-mirror/SKILL.md +4 -0
- package/payload/platform/scripts/backfill-task-ids.sh +206 -0
- package/payload/server/public/activity.html +6 -6
- package/payload/server/public/assets/{AdminLoginScreens-B7TQZV8u.js → AdminLoginScreens-B44KbEuC.js} +1 -1
- package/payload/server/public/assets/{AdminShell-DAuri4Yh.js → AdminShell-BjxV2qkb.js} +2 -2
- package/payload/server/public/assets/{Checkbox-B1XhnhPk.js → Checkbox-DSeZNGNA.js} +1 -1
- package/payload/server/public/assets/{activity-kRwzxEKU.js → activity-CdipMTDp.js} +1 -1
- package/payload/server/public/assets/{admin-BdcccSb5.js → admin-B4LpTCur.js} +1 -1
- package/payload/server/public/assets/{browser-B6woQ2qX.js → browser-CEFvaWwI.js} +1 -1
- package/payload/server/public/assets/{calendar-CalCeg5T.js → calendar-B3zo6V34.js} +1 -1
- package/payload/server/public/assets/chat-5tJdo9i_.js +1 -0
- package/payload/server/public/assets/chevron-left-BJllrPBj.js +1 -0
- package/payload/server/public/assets/data-Du79EgR-.js +1 -0
- package/payload/server/public/assets/{graph-HeZaatSQ.js → graph-RaOrnSf2.js} +1 -1
- package/payload/server/public/assets/{graph-labels-4W7JuOgG.js → graph-labels-GlTEIYJj.js} +1 -1
- package/payload/server/public/assets/{maximize-2-DKx-aTPb.js → maximize-2-CHDa8p5h.js} +1 -1
- package/payload/server/public/assets/{operator-DD9L2VJM.js → operator-DtqHY4jV.js} +1 -1
- package/payload/server/public/assets/{page-tJxw0zNO.js → page-CkhFj8GQ.js} +1 -1
- package/payload/server/public/assets/{page-Ceado9Kr.js → page-DxnWgPtd.js} +1 -1
- package/payload/server/public/assets/{public-BYFWxyeC.js → public-D5TUfQ3I.js} +1 -1
- package/payload/server/public/assets/{rotate-ccw-DrzdV9h7.js → rotate-ccw-BJjVAQQY.js} +1 -1
- package/payload/server/public/assets/tasks-CM9pYYG1.js +1 -0
- package/payload/server/public/assets/{time-entry-format-Bn79w6tq.js → time-entry-format-C5RYEYjM.js} +1 -1
- package/payload/server/public/assets/{triangle-alert-CjDVh6r-.js → triangle-alert-DLfIsuo_.js} +1 -1
- package/payload/server/public/assets/{useCopyFeedback-DXHkkJw-.js → useCopyFeedback-7yKeiAzV.js} +1 -1
- package/payload/server/public/assets/{useSelectionMode-D2H8jAhE.js → useSelectionMode-CWlh6AEq.js} +1 -1
- package/payload/server/public/assets/{useSubAccountSwitcher-Br7Z6Cpu.css → useSubAccountSwitcher-B2n9QPVI.css} +1 -1
- package/payload/server/public/assets/{useVoiceRecorder-zUvPe55I.js → useVoiceRecorder-j3ZArZ2H.js} +1 -1
- package/payload/server/public/browser.html +5 -5
- package/payload/server/public/calendar.html +6 -6
- package/payload/server/public/chat.html +12 -12
- package/payload/server/public/data.html +11 -11
- package/payload/server/public/graph.html +11 -11
- package/payload/server/public/index.html +14 -14
- package/payload/server/public/operator.html +14 -14
- package/payload/server/public/public.html +12 -12
- package/payload/server/public/tasks.html +5 -5
- package/payload/server/server.js +65 -13
- package/payload/server/public/assets/chat-9s2-L06v.js +0 -1
- package/payload/server/public/assets/chevron-left-C3ho8SnB.js +0 -1
- package/payload/server/public/assets/data-Cfr-7ERI.js +0 -1
- package/payload/server/public/assets/tasks-DSwoxGzh.js +0 -1
- /package/payload/server/public/assets/{useSubAccountSwitcher-CUJpgkKI.js → useSubAccountSwitcher-CBlKgwms.js} +0 -0
|
@@ -1,467 +1,352 @@
|
|
|
1
1
|
# Google Auth Reference
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The `google` plugin connects one Google Calendar per registered Google account,
|
|
4
|
+
using a **Desktop (installed app)** OAuth client whose id and secret ship in
|
|
5
|
+
brand config. This file is the decision record and the vendor runbook.
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
| Check | Result |
|
|
9
|
-
|---|---|
|
|
10
|
-
| Calendar scope granted via browser consent | **yes** — `scope=https://www.googleapis.com/auth/calendar` returned on the redirect and echoed in the token response |
|
|
11
|
-
| Refresh token issued (`access_type=offline`, `prompt=consent`) | **yes** — `refresh_token` present |
|
|
12
|
-
| Access-token lifetime | `expires_in: 3599` (1 hour) |
|
|
13
|
-
| Refresh-token lifetime in **Testing** | `refresh_token_expires_in: 604799` — **6.99 days**, confirming the predicted 7-day Testing cap empirically |
|
|
14
|
-
| Device-code refusal (Verdict 1) | not run empirically; rests on Google's published allowlist. Optional, changes no decision (see the live-test section) |
|
|
15
|
-
|
|
16
|
-
The 604799 figure is the concrete argument for completing brand verification: in Testing,
|
|
17
|
-
every connected account silently re-consents weekly. Verification removes it.
|
|
18
|
-
|
|
19
|
-
The flow below is the ORIGINAL Phase 0 verdict and is retained for its evidence.
|
|
20
|
-
It has since been superseded on two points: the vendor app is a
|
|
21
|
-
Desktop client whose secret ships in brand config, and the redirect is loopback
|
|
22
|
-
rather than a hosted HTTPS callback. Read the Desktop sections further down as
|
|
23
|
-
authoritative where the two differ.
|
|
24
|
-
|
|
25
|
-
## Original spike verdict (documentation-backed, now confirmed)
|
|
26
|
-
|
|
27
|
-
This is the Phase 0 deliverable: the OAuth-flow verdict for a per-account
|
|
28
|
-
**Google Calendar** plugin on a headless install where the operator consents from a phone
|
|
29
|
-
over WhatsApp, with no browser on the box.
|
|
30
|
-
|
|
31
|
-
Scope note: this plugin is **calendar-only**. Mail stays on the `email` plugin's IMAP/SMTP
|
|
32
|
-
path; there is no Gmail API surface. That choice is deliberate and it is what keeps this
|
|
33
|
-
plugin out of Google's restricted-scope security review (see
|
|
34
|
-
["Verification"](#verification-the-light-kind-not-the-security-assessment)). Contacts
|
|
35
|
-
(People API, read-only) is a possible later addition on the same footing but is not in this
|
|
36
|
-
plugin.
|
|
37
|
-
|
|
38
|
-
Every claim below is grounded in Google's **published** behaviour, cited inline. What is
|
|
39
|
-
**not** yet done is the live token test the task requires: a real token issued (or refused)
|
|
40
|
-
by an actual Google OAuth client for the Calendar scope. Until that runs
|
|
41
|
-
(["Live test that closes the Phase 0 gate"](#live-test-that-closes-the-phase-0-gate)),
|
|
42
|
-
this document is a prediction, not a proof. Do **not** build the register/register-poll
|
|
43
|
-
path against it before the live test confirms the verdict.
|
|
44
|
-
|
|
45
|
-
What is decided from published behaviour:
|
|
46
|
-
|
|
47
|
-
- The **device-authorization grant is rejected** for this plugin. Google's device flow
|
|
48
|
-
serves only a fixed allowlist of scopes; Calendar is not on it.
|
|
49
|
-
- The flow is therefore an **operator-assisted authorization-code (PKCE) flow**, and it
|
|
50
|
-
needs a redirect method, because Google's out-of-band ("paste the code") flow is fully
|
|
51
|
-
blocked.
|
|
52
|
-
- The redirect method recommended at the time was a hosted HTTPS callback on the
|
|
53
|
-
brand's Cloudflare tunnel domain (a "Web application" client). **Superseded by
|
|
54
|
-
the recent decision**: the fallback named here — a Desktop client with a loopback redirect
|
|
55
|
-
and a manual code relay — is what shipped, because only an installed-app secret
|
|
56
|
-
can be distributed to customer devices.
|
|
57
|
-
- **Verification is the light kind.** Calendar is a *sensitive* scope, not a *restricted*
|
|
58
|
-
one, so a brand's app needs only OAuth brand/consent-screen verification, never the
|
|
59
|
-
annual third-party security assessment.
|
|
60
|
-
|
|
61
|
-
This diverges from Outlook on one axis: Outlook's device-code flow is secret-less, and the
|
|
62
|
-
recommended Google flow holds a per-brand client secret. That divergence is forced by
|
|
63
|
-
Google, not chosen; the reasoning is below.
|
|
7
|
+
Decided 2026-07-18, superseding the earlier hosted-HTTPS-callback model. That model is gone from the tree; see
|
|
8
|
+
["What was removed"](#what-was-removed) for what to expect on an old device.
|
|
64
9
|
|
|
65
10
|
---
|
|
66
11
|
|
|
67
|
-
##
|
|
12
|
+
## Vendor runbook: creating the client (one-time per brand)
|
|
13
|
+
|
|
14
|
+
Not an end-user step. Run once per brand; each brand is a separate provisioning
|
|
15
|
+
follow-up, mirroring Outlook 1479/1485.
|
|
16
|
+
|
|
17
|
+
1. Sign in to the [Google Cloud console](https://console.cloud.google.com) with
|
|
18
|
+
the brand's Google account and select the brand's **existing** project — not
|
|
19
|
+
a new one, so the consent screen and any verification progress carry over.
|
|
20
|
+
For `sitedesk-code` that project is `Sitedesk Calendar`.
|
|
21
|
+
2. Enable the **Google Calendar API** (APIs & Services → Library). It is the
|
|
22
|
+
only API this plugin calls.
|
|
23
|
+
3. Configure the **OAuth consent screen**: user type **External**, app name and
|
|
24
|
+
support email set to the brand's, and the single scope from
|
|
25
|
+
["Scope"](#scope) below. Publishing status starts at **Testing**.
|
|
26
|
+
4. **Add test users** while the app is in Testing. Consent is refused for anyone
|
|
27
|
+
not on that list, including the operator, and the refusal renders as an
|
|
28
|
+
access-denied screen that reads like a flow bug.
|
|
29
|
+
5. **Credentials → Create credentials → OAuth client ID**, application type
|
|
30
|
+
**Desktop app**, named for the brand. Register redirect `http://127.0.0.1`.
|
|
31
|
+
6. Copy the **Client ID** and **Client secret** into that brand's `brand.json`:
|
|
68
32
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
33
|
+
```jsonc
|
|
34
|
+
// brands/<brand>/brand.json
|
|
35
|
+
"googleClientId": "<the client id>",
|
|
36
|
+
"googleClientSecret": "<the client secret>"
|
|
37
|
+
```
|
|
72
38
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
39
|
+
7. **Run the loopback pre-flight below before publishing.** It is the only step
|
|
40
|
+
that catches a wrong client type, and it costs seconds.
|
|
41
|
+
8. Re-bundle and publish the installer. No file is placed on any device by hand.
|
|
76
42
|
|
|
77
|
-
|
|
78
|
-
>
|
|
79
|
-
> **OpenID Connect, Google Sign-In:** `email`, `openid`, `profile`
|
|
80
|
-
> **Drive API:** `https://www.googleapis.com/auth/drive.appdata`, `https://www.googleapis.com/auth/drive.file`
|
|
81
|
-
> **YouTube API:** `https://www.googleapis.com/auth/youtube`, `https://www.googleapis.com/auth/youtube.readonly`
|
|
43
|
+
### Pre-flight: confirm the client accepts loopback
|
|
82
44
|
|
|
83
|
-
The
|
|
84
|
-
|
|
85
|
-
|
|
45
|
+
The failure this catches is a **Web** client pasted in where a Desktop one
|
|
46
|
+
belongs. Nothing else in the chain notices: the brand bundles, the installer
|
|
47
|
+
stamps, the plugin boots reporting both values configured, and the consent URL
|
|
48
|
+
builds. The first symptom is a customer completing consent and hitting
|
|
49
|
+
`redirect_uri_mismatch`, which reads as an expired code rather than a wrong
|
|
50
|
+
client type.
|
|
86
51
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
allowlist above is the reason to expect it; the recorded response is the proof.
|
|
52
|
+
The discriminator is that a genuine Desktop client accepts a loopback redirect
|
|
53
|
+
**without any redirect being registered on it**, because RFC 8252 §7.3 makes the
|
|
54
|
+
port irrelevant for the `127.0.0.1` literal. A client that refuses loopback is
|
|
55
|
+
therefore not a usable Desktop client, whatever the console labels it.
|
|
92
56
|
|
|
93
|
-
|
|
57
|
+
Sends the client id only, never the secret. Non-mutating.
|
|
94
58
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
59
|
+
```bash
|
|
60
|
+
CID=$(node -e 'console.log(JSON.parse(require("fs").readFileSync("brands/<brand>/brand.json","utf8")).googleClientId.trim())')
|
|
61
|
+
curl -s -D - -o /dev/null \
|
|
62
|
+
"https://accounts.google.com/o/oauth2/v2/auth?client_id=${CID}&redirect_uri=http%3A%2F%2F127.0.0.1%3A8571&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar" \
|
|
63
|
+
| grep -i '^location:' | grep -q 'authError' && echo REJECTED || echo ACCEPTED
|
|
64
|
+
```
|
|
101
65
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
... to receive the authorization code" (OOB migration guide). Google's migration guidance
|
|
106
|
-
covers mobile, Chrome, web, and desktop clients; it gives **no** cross-device pattern for
|
|
107
|
-
a headless box where consent happens on a separate phone. That gap is the design problem
|
|
108
|
-
this plugin has to solve itself.
|
|
66
|
+
The two words report **what Google did with the redirect**, not whether you have
|
|
67
|
+
a problem. Which of them is the good news depends on which redirect you sent, so
|
|
68
|
+
read them against the table below rather than by tone.
|
|
109
69
|
|
|
110
|
-
|
|
70
|
+
`ACCEPTED` means Google took the redirect and moved the browser to the sign-in
|
|
71
|
+
flow. `REJECTED` means it bounced to an error page; decode the `authError`
|
|
72
|
+
payload to see which error:
|
|
111
73
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
74
|
+
```bash
|
|
75
|
+
# ...append to the curl above instead of the grep chain
|
|
76
|
+
| sed -E 's/.*authError=([^&]*).*/\1/' | tr '_-' '/+' | base64 -d | head -c 200
|
|
77
|
+
```
|
|
116
78
|
|
|
117
|
-
|
|
79
|
+
- `redirect_uri_mismatch` — the client will not take a loopback redirect. It is
|
|
80
|
+
a Web client, or a Desktop client whose configuration was altered. Create a
|
|
81
|
+
**Desktop app** client and use that pair.
|
|
82
|
+
- `invalid_request` — the redirect in the probe itself is malformed. Check the
|
|
83
|
+
URL-encoding rather than the client.
|
|
118
84
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
85
|
+
**Both outcomes return HTTP 302**, so the status code is not the signal and a
|
|
86
|
+
probe that checks it reports success on a broken client. The `authError`
|
|
87
|
+
parameter is the signal.
|
|
122
88
|
|
|
123
|
-
|
|
124
|
-
https://<brand-public-host>/api/google/oauth/callback
|
|
125
|
-
```
|
|
89
|
+
Run the probe **twice**, and read the pair:
|
|
126
90
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
`/api/google/` to that allowlist in the same commit as the callback route.
|
|
91
|
+
| Run | Redirect sent | Required result | What it establishes |
|
|
92
|
+
|---|---|---|---|
|
|
93
|
+
| Subject | `http://127.0.0.1:8571` | `ACCEPTED` | The client takes loopback, so it is a usable Desktop client |
|
|
94
|
+
| Control | `https://example.invalid/cb` | `REJECTED` (`invalid_request`) | The probe can still detect a rejection |
|
|
132
95
|
|
|
133
|
-
|
|
134
|
-
|
|
96
|
+
`REJECTED` on the control is the **expected and required** outcome — it is not a
|
|
97
|
+
fault, and nothing about the client needs changing when you see it. Its only job
|
|
98
|
+
is to prove the probe is still measuring something.
|
|
135
99
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
100
|
+
The failure mode it guards against is a probe that has silently stopped
|
|
101
|
+
measuring: if the `grep` chain breaks — Google renames the error parameter, or
|
|
102
|
+
stops emitting a `location:` header — the command still exits cleanly and still
|
|
103
|
+
prints `ACCEPTED`. Silent green. `ACCEPTED` on **both** runs means the probe is
|
|
104
|
+
dead and the subject run proves nothing; fix the probe before trusting it.
|
|
139
105
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
Mirror `/api/quickbooks/` rather than inventing a new pattern.
|
|
106
|
+
Never act on the control run alone. Reading its `REJECTED` as a verdict on the
|
|
107
|
+
client would send you to replace a credential that is working.
|
|
143
108
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
| google-account-register | |
|
|
148
|
-
|--------------------------------------->| build PKCE (verifier+challenge), |
|
|
149
|
-
| | state; write pending-oauth.enc |
|
|
150
|
-
| | build consent URL (access_type= |
|
|
151
|
-
| | offline, prompt=consent, calendar |
|
|
152
|
-
| | scope, redirect=<tunnel>/cb) |
|
|
153
|
-
| { status:"pending", consentUrl } | |
|
|
154
|
-
|<---------------------------------------| |
|
|
155
|
-
| open consentUrl on phone, sign in, | |
|
|
156
|
-
| consent -------------------------------------------------------------------> |
|
|
157
|
-
| | GET /api/google/oauth/callback?code&state <-- redirect
|
|
158
|
-
| | verify state, exchange code+verifier |
|
|
159
|
-
| | (+client secret) ---------------> |
|
|
160
|
-
| | < tokens (access+refresh) |
|
|
161
|
-
| | GET userinfo → account email/id |
|
|
162
|
-
| | encrypt → accounts/<id>/tokens.enc |
|
|
163
|
-
| | clear pending |
|
|
164
|
-
| google-account-register-poll → { registered, email } |
|
|
165
|
-
|<---------------------------------------| |
|
|
166
|
-
```
|
|
109
|
+
Trailing whitespace on a pasted id is a real and silent failure; nothing in the
|
|
110
|
+
chain trims it. The `.trim()` above is for the probe only, so the probe can pass
|
|
111
|
+
while the shipped value is broken. Confirm the stored value is clean:
|
|
167
112
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
operator on WhatsApp, which is the whole reason device-code was wanted.
|
|
113
|
+
```bash
|
|
114
|
+
node -e 'const v=JSON.parse(require("fs").readFileSync("brands/<brand>/brand.json","utf8")).googleClientId; console.log(v===v.trim()?"clean":"WHITESPACE")'
|
|
115
|
+
```
|
|
172
116
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
117
|
+
**The client secret is shown exactly once.** The console displays only the last
|
|
118
|
+
four characters afterwards ("Viewing and downloading client secrets is no longer
|
|
119
|
+
available"). Capture it at creation straight into `brand.json`, or plan to
|
|
120
|
+
rotate — rotation is free and has no downtime: **Add secret**, store the new
|
|
121
|
+
one, delete the old. Never paste it into a chat transcript or a shell command
|
|
122
|
+
that lands in history.
|
|
176
123
|
|
|
177
|
-
|
|
124
|
+
Confirm the stamp took from the boot line, which reports presence and never
|
|
125
|
+
values:
|
|
178
126
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
127
|
+
```bash
|
|
128
|
+
grep -m1 'google-mcp. boot' ~/.<brand>-code/logs/server.log
|
|
129
|
+
# ... clientIdConfigured=true clientSecretConfigured=true
|
|
130
|
+
```
|
|
182
131
|
|
|
183
|
-
|
|
184
|
-
browser to `http://localhost:<port>/?code=...`, which fails to load (nothing listens on the
|
|
185
|
-
phone). The operator copies the `code` value out of the address bar of the failed page and
|
|
186
|
-
sends it back via a `google-account-register-submit` tool; the plugin exchanges it with the
|
|
187
|
-
stored PKCE verifier.
|
|
132
|
+
Either reading `false` on a brand that ships both is the mis-stamp signature.
|
|
188
133
|
|
|
189
|
-
|
|
190
|
-
browsers hide the URL of a failed navigation. Use this only where a brand has no usable
|
|
191
|
-
hosted callback. The live test measures whether this UX is acceptable before it is relied on.
|
|
134
|
+
### Connecting an account, once the brand ships a client
|
|
192
135
|
|
|
193
|
-
|
|
136
|
+
`google-account-register` returns a consent URL. The user opens it on any
|
|
137
|
+
device and approves. Google redirects to `http://127.0.0.1:8571/?code=…`, which
|
|
138
|
+
**fails to load by design** — nothing listens there, and the consenting browser
|
|
139
|
+
is the user's own phone. The user copies the `code` value out of the address bar
|
|
140
|
+
of that failed page and passes it to `google-account-register-submit`, which
|
|
141
|
+
exchanges it in-process. `google-account-register-poll` reports the outcome at
|
|
142
|
+
any point.
|
|
194
143
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
for the Calendar scope — before any register code is built. If the tunnel-hosted callback
|
|
199
|
-
is not viable for a given brand, Option A is the recorded fallback.
|
|
144
|
+
That failed-page step is a real UX cost, priced and accepted: some mobile
|
|
145
|
+
browsers hide the URL of a failed navigation. It is the price of a client type
|
|
146
|
+
whose secret can legitimately ship to customer devices.
|
|
200
147
|
|
|
201
148
|
---
|
|
202
149
|
|
|
203
|
-
##
|
|
150
|
+
## Why this shape
|
|
204
151
|
|
|
205
|
-
|
|
206
|
-
on that brand, exactly as `outlookClientId` does. The client id ships as the brand default
|
|
207
|
-
`brands/<brand>/brand.json#googleClientId`, stamped onto the session-manager unit env as
|
|
208
|
-
`GOOGLE_CLIENT_ID` and inherited down the spawn chain (manager unit env → PTY → MCP child).
|
|
152
|
+
### Device-code is rejected (scope allowlist)
|
|
209
153
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
makes it work until the vendor client exists — mirroring Outlook's inert behaviour.
|
|
154
|
+
Outlook uses Microsoft's `/devicecode` grant, so the operator never needs a
|
|
155
|
+
browser on the box. That grant does not work for Calendar. Google's flow for TV
|
|
156
|
+
and limited-input devices serves only a fixed allowlist. Verbatim from
|
|
157
|
+
[OAuth 2.0 for TV and Limited-Input Device Applications](https://developers.google.com/identity/protocols/oauth2/limited-input-device):
|
|
215
158
|
|
|
216
|
-
|
|
159
|
+
> The OAuth 2.0 flow for devices is supported only for the following scopes:
|
|
160
|
+
>
|
|
161
|
+
> **OpenID Connect, Google Sign-In:** `email`, `openid`, `profile`
|
|
162
|
+
> **Drive API:** `https://www.googleapis.com/auth/drive.appdata`, `https://www.googleapis.com/auth/drive.file`
|
|
163
|
+
> **YouTube API:** `https://www.googleapis.com/auth/youtube`, `https://www.googleapis.com/auth/youtube.readonly`
|
|
217
164
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
which cannot reach a customer device and contradicts installer-only doctrine.
|
|
165
|
+
The Calendar scope is absent, so a device-flow request carrying it is refused.
|
|
166
|
+
The flow is therefore authorization-code + PKCE.
|
|
221
167
|
|
|
222
|
-
|
|
223
|
-
token endpoint for **every** client type, including Web clients using PKCE.
|
|
168
|
+
### Out-of-band is dead, so a redirect is mandatory
|
|
224
169
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
170
|
+
Google blocked new out-of-band use on 28 Feb 2022 and all existing clients on
|
|
171
|
+
31 Jan 2023 ([OOB migration guide](https://developers.google.com/identity/protocols/oauth2/resources/oob-migration)).
|
|
172
|
+
A `redirect_uri=urn:ietf:wg:oauth:2.0:oob` request is refused. Consent must land
|
|
173
|
+
on a real redirect URI.
|
|
229
174
|
|
|
230
|
-
|
|
231
|
-
// brands/<brand>/brand.json
|
|
232
|
-
"googleClientId": "<the client id>",
|
|
233
|
-
"googleClientSecret": "<the client secret>"
|
|
234
|
-
```
|
|
175
|
+
### The secret cannot be avoided, so the client type must sanction shipping it
|
|
235
176
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
177
|
+
Google requires `client_secret` at the token endpoint for **every** client type,
|
|
178
|
+
including Web clients using PKCE. There is no public-client path, so any install
|
|
179
|
+
performing its own exchange holds one.
|
|
180
|
+
|
|
181
|
+
A Desktop client is the one type where Google explicitly sanctions embedding
|
|
182
|
+
that secret in distributed software — "the client secret is obviously not
|
|
183
|
+
treated as a secret". `brand.json` is therefore a legitimate carrier, and the
|
|
184
|
+
installer stamps `GOOGLE_CLIENT_ID` and `GOOGLE_CLIENT_SECRET` **together or
|
|
185
|
+
not at all**. A client id without its secret builds a consent URL the user can
|
|
186
|
+
complete but an exchange that cannot, which fails later and less legibly than
|
|
187
|
+
not offering the flow.
|
|
239
188
|
|
|
240
189
|
The secret ships to a **public** npm registry. That is the accepted trade: the
|
|
241
190
|
residual risk is app impersonation and quota abuse against the brand's client
|
|
242
|
-
id, not token theft, because PKCE still binds each code to its verifier.
|
|
191
|
+
id, **not** token theft, because PKCE still binds each code to its verifier.
|
|
243
192
|
|
|
244
193
|
Rejected, each once and for a reason:
|
|
245
194
|
|
|
246
|
-
- **Customer-owned apps** (the QuickBooks pattern
|
|
247
|
-
their own app). Unlike Intuit, Google demands app
|
|
248
|
-
sensitive Calendar scope — homepage, privacy policy,
|
|
249
|
-
video — which the target customer cannot produce.
|
|
250
|
-
- **A vendor-hosted exchange broker
|
|
251
|
-
|
|
252
|
-
credential-bearing service for every customer.
|
|
195
|
+
- **Customer-owned apps** (the QuickBooks pattern at `quickbooks/PLUGIN.md:71`,
|
|
196
|
+
where the operator registers their own app). Unlike Intuit, Google demands app
|
|
197
|
+
verification for the sensitive Calendar scope — homepage, privacy policy,
|
|
198
|
+
domain ownership, demo video — which the target customer cannot produce.
|
|
199
|
+
- **A vendor-hosted exchange broker.** Best security and best UX, but it means
|
|
200
|
+
operating a credential-bearing service for every customer.
|
|
253
201
|
- **A Web client with the secret shipped anyway.** A Web-app secret is genuinely
|
|
254
202
|
confidential in Google's model; publishing it would be a real credential leak
|
|
255
203
|
rather than a sanctioned embed.
|
|
204
|
+
- **A house-only secret file** (`platform/config/google-house.env`, the earlier
|
|
205
|
+
hosted-callback model). Requires a manual placement per install, so it cannot reach a
|
|
206
|
+
customer device and contradicts installer-only doctrine.
|
|
256
207
|
|
|
257
208
|
### The redirect is loopback, and the IP literal is mandatory
|
|
258
209
|
|
|
259
210
|
Desktop clients permit only loopback redirects. `https` is rejected outright and
|
|
260
211
|
custom URI schemes are withdrawn ("no longer supported due to the risk of app
|
|
261
|
-
impersonation"), so this is the entire option space
|
|
212
|
+
impersonation"), so this is the entire option space:
|
|
262
213
|
|
|
263
214
|
```
|
|
264
215
|
http://127.0.0.1:8571
|
|
265
216
|
```
|
|
266
217
|
|
|
267
218
|
**Never `localhost`.** RFC 8252 §7.3 makes the port irrelevant when matching a
|
|
268
|
-
loopback redirect, but only for the IP literals `127.0.0.1` and `::1`;
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
Nothing listens on that port, by design. The consenting browser is the user's
|
|
272
|
-
own phone, so the redirect fails to load and the user copies the code out of the
|
|
273
|
-
address bar and pastes it back to `google-account-register-submit`. The port is
|
|
274
|
-
fixed so consent URLs are deterministic and one register's logs compare with
|
|
275
|
-
another's.
|
|
219
|
+
loopback redirect, but only for the IP literals `127.0.0.1` and `::1`; the
|
|
220
|
+
hostname is matched literally. Register `http://127.0.0.1` on the client.
|
|
276
221
|
|
|
277
|
-
|
|
278
|
-
|
|
222
|
+
The port is fixed and arbitrary. Google ignores it for loopback and nothing
|
|
223
|
+
listens on it, so a constant keeps consent URLs deterministic and one register's
|
|
224
|
+
logs comparable with another's.
|
|
279
225
|
|
|
280
|
-
|
|
226
|
+
---
|
|
281
227
|
|
|
282
|
-
|
|
283
|
-
consent screen and any verification progress carry over — go to
|
|
284
|
-
**Credentials → Create credentials → OAuth client ID**.
|
|
285
|
-
2. Application type **Desktop app**. Name it for the brand.
|
|
286
|
-
3. Copy the **Client ID** and **Client secret** into that brand's `brand.json`
|
|
287
|
-
as `googleClientId` and `googleClientSecret`.
|
|
288
|
-
4. Re-bundle and publish. No file is placed on any device by hand.
|
|
228
|
+
## Scope
|
|
289
229
|
|
|
290
|
-
|
|
230
|
+
One scope, chosen to match the Outlook calendar tool surface (read plus create,
|
|
231
|
+
update, cancel, respond, free-busy), no broader:
|
|
291
232
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
```
|
|
233
|
+
| Purpose | Scope | Class |
|
|
234
|
+
|---|---|---|
|
|
235
|
+
| Calendar read + event create/update/cancel/respond/free-busy | `https://www.googleapis.com/auth/calendar` | sensitive |
|
|
296
236
|
|
|
297
|
-
|
|
237
|
+
The account's email is read from `GET /calendars/primary` (whose id is the
|
|
238
|
+
address) rather than by requesting `openid`/`email`/`profile`, so consent stays
|
|
239
|
+
minimal.
|
|
298
240
|
|
|
299
|
-
|
|
241
|
+
A refresh token requires `access_type=offline` plus `prompt=consent` on the
|
|
242
|
+
consent URL; those are request parameters, not scopes.
|
|
300
243
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
follow-up once the plugin lands (mirroring Outlook 1479/1485).
|
|
306
|
-
|
|
307
|
-
1. Sign in to the [Google Cloud console](https://console.cloud.google.com) with the brand's
|
|
308
|
-
Google account. Create (or select) one project named for the brand and its Google
|
|
309
|
-
integration, e.g. `SiteDesk Google`.
|
|
310
|
-
2. Enable the **Google Calendar API** (APIs & Services → Library). That is the only API this
|
|
311
|
-
plugin calls.
|
|
312
|
-
3. Configure the **OAuth consent screen**: user type **External**, app name and support
|
|
313
|
-
email set to the brand's, and add the single scope below. Publishing status starts at
|
|
314
|
-
**Testing** and moves to **In production** once brand verification is done (see below).
|
|
315
|
-
4. Create the **OAuth client**:
|
|
316
|
-
- **Option B (recommended):** application type **Web application**. Add the authorized
|
|
317
|
-
redirect URI `https://<brand-public-host>/api/google/oauth/callback` (the `/api/`
|
|
318
|
-
prefix is required — see Option B above). Copy the **Client ID**
|
|
319
|
-
(→ `brand.json#googleClientId`).
|
|
320
|
-
|
|
321
|
-
**The client secret is shown exactly once and cannot be retrieved afterwards.** The
|
|
322
|
-
console displays only the last four characters from then on ("Viewing and downloading
|
|
323
|
-
client secrets is no longer available. If you have lost the secret below, please add a
|
|
324
|
-
new one."). Capture it at creation into its final destination, or plan to rotate. It is
|
|
325
|
-
never pasted into a chat transcript, a shell command that lands in history, or the repo.
|
|
326
|
-
Rotation is free and has no downtime: **Add secret**, store the new one, delete the old.
|
|
327
|
-
It ships in `brand.json` as `googleClientSecret` — see the Desktop sections above.
|
|
328
|
-
- **Option A (fallback):** application type **Desktop app**. Copy the **Client ID**.
|
|
329
|
-
5. Set `googleClientId` in the brand's `brand.json` and re-bundle:
|
|
330
|
-
```jsonc
|
|
331
|
-
// brands/<brand>/brand.json
|
|
332
|
-
"googleClientId": "<the Client ID copied above>"
|
|
333
|
-
```
|
|
244
|
+
The narrower alternative is `calendar.events` + `calendar.readonly` +
|
|
245
|
+
`calendar.freebusy`. It has never been exercised. All Calendar scopes are
|
|
246
|
+
*sensitive*, not *restricted*, so narrowing would not change the verification
|
|
247
|
+
path.
|
|
334
248
|
|
|
335
|
-
|
|
249
|
+
## Verification: the light kind, not the security assessment
|
|
336
250
|
|
|
337
|
-
|
|
338
|
-
|
|
251
|
+
Calendar is a **sensitive** scope, not a restricted one. A production app using
|
|
252
|
+
it needs only OAuth **brand/consent-screen verification** (own the domain;
|
|
253
|
+
Google reviews app name, logo, and scope justification). It does **not** need
|
|
254
|
+
the annual third-party security assessment, which applies only to *restricted*
|
|
255
|
+
scopes such as the Gmail read/modify family. Dropping the Gmail surface is
|
|
256
|
+
exactly what keeps a brand off that review — mail runs on the `email` plugin's
|
|
257
|
+
IMAP/SMTP path instead.
|
|
339
258
|
|
|
340
|
-
|
|
341
|
-
|---|---|---|
|
|
342
|
-
| Identity (email address, sign-in) | `openid`, `email`, `profile` | non-sensitive |
|
|
343
|
-
| Calendar read + event create/update/cancel/respond/free-busy | `https://www.googleapis.com/auth/calendar` | sensitive |
|
|
259
|
+
The two publishing states, and what each costs:
|
|
344
260
|
|
|
345
|
-
|
|
261
|
+
- **Testing** (no verification): works immediately for up to **100 named test
|
|
262
|
+
accounts**, each seeing the unverified-app warning and re-consenting about
|
|
263
|
+
every 7 days. Fine for a pilot.
|
|
264
|
+
- **In production + brand-verified** (no cost, no security firm, typically days
|
|
265
|
+
to a couple of weeks): the 100-account cap lifts, the warning is gone, and
|
|
266
|
+
refresh tokens are long-lived. This is the real deployment state and the
|
|
267
|
+
target for each brand. Start it early, because Google's review is the slow
|
|
268
|
+
part.
|
|
346
269
|
|
|
347
|
-
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
scopes are *sensitive*, not *restricted*, so the narrower choice does not change the
|
|
351
|
-
verification path.
|
|
352
|
-
- A refresh token requires `access_type=offline` plus `prompt=consent` on the consent URL;
|
|
353
|
-
this is a request parameter, not a scope.
|
|
270
|
+
The 7-day Testing cap is measured, not predicted — see below. It is Google
|
|
271
|
+
forcing re-consent until the brand is verified, **not** a refresh failure, and
|
|
272
|
+
the health signal names it distinctly.
|
|
354
273
|
|
|
355
|
-
###
|
|
274
|
+
### Recorded round-trip (2026-07-18)
|
|
356
275
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
the Gmail read/modify family, which this plugin does not use. Dropping the Gmail surface is
|
|
362
|
-
exactly what keeps a brand off the expensive review.
|
|
276
|
+
Run against the since-retired `sitedesk-code` Web client. The client type has
|
|
277
|
+
changed, but these facts are properties of the Calendar scope and the consent
|
|
278
|
+
screen, not of the client type, so they carry forward. Values deliberately not
|
|
279
|
+
recorded.
|
|
363
280
|
|
|
364
|
-
|
|
281
|
+
| Check | Result |
|
|
282
|
+
|---|---|
|
|
283
|
+
| Calendar scope granted via browser consent | **yes** — `scope=https://www.googleapis.com/auth/calendar` returned on the redirect and echoed in the token response |
|
|
284
|
+
| Refresh token issued (`access_type=offline`, `prompt=consent`) | **yes** — `refresh_token` present |
|
|
285
|
+
| Access-token lifetime | `expires_in: 3599` (1 hour) |
|
|
286
|
+
| Refresh-token lifetime in **Testing** | `refresh_token_expires_in: 604799` — **6.99 days**, confirming the 7-day Testing cap empirically |
|
|
287
|
+
| Device-code refusal | not run empirically; rests on Google's published allowlist above. Changes no decision |
|
|
365
288
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
(Google caps refresh-token lifetime while an app is in Testing). Fine for a pilot,
|
|
369
|
-
including the first `sitedesk-code` account.
|
|
370
|
-
- **In production + brand-verified** (the light verification, no cost, no security firm,
|
|
371
|
-
typically days to a couple of weeks): the 100-account cap lifts, the warning is gone, and
|
|
372
|
-
refresh tokens are long-lived. This is the real deployment state and the target for each
|
|
373
|
-
brand. Start it early per brand, because Google's review is the slow part.
|
|
289
|
+
The 604799 figure is the concrete argument for completing brand verification: in
|
|
290
|
+
Testing, every connected account silently re-consents weekly.
|
|
374
291
|
|
|
375
292
|
---
|
|
376
293
|
|
|
377
|
-
## Token store and pending-state layout
|
|
294
|
+
## Token store and pending-state layout
|
|
378
295
|
|
|
379
|
-
|
|
380
|
-
account, `tokens.enc` under `accounts/<id>/`, mode 0700 dirs and 0600 files,
|
|
381
|
-
temp+rename writes.
|
|
382
|
-
multi-mailbox nesting to mirror.
|
|
296
|
+
Mirrors Outlook's per-account encrypted layout: one AES-256-CBC `.key` per
|
|
297
|
+
account, `tokens.enc` under `accounts/<id>/`, mode 0700 dirs and 0600 files,
|
|
298
|
+
atomic temp+rename writes.
|
|
383
299
|
|
|
384
300
|
```
|
|
385
301
|
data/accounts/<accountId>/secrets/google/
|
|
386
302
|
├── .key # 32 random bytes, base64 — per-account AES-256-CBC key
|
|
387
303
|
├── accounts/
|
|
388
304
|
│ └── <userId>/tokens.enc # AES-256-CBC token JSON blob per registered Google account
|
|
389
|
-
└── pending-oauth.enc # transient: PKCE verifier
|
|
305
|
+
└── pending-oauth.enc # transient: PKCE verifier between register and submit
|
|
390
306
|
```
|
|
391
307
|
|
|
392
|
-
Two divergences from Outlook are
|
|
308
|
+
Two divergences from Outlook are load-bearing:
|
|
393
309
|
|
|
394
|
-
- **Pending state is a PKCE verifier
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
- **The concurrent-refresh race
|
|
399
|
-
fixed `.tmp` name and could wipe valid tokens when two refreshes raced. The
|
|
400
|
-
Google writer uses a unique temp name per write and
|
|
401
|
-
valid tokens on an IO error. A losing concurrent writer must not wipe
|
|
310
|
+
- **Pending state is a PKCE verifier, not a device code.** Register writes it;
|
|
311
|
+
`register-submit` reads and clears it. Single-slot per account, refuses a
|
|
312
|
+
second concurrent register with an `in-progress` signal, cleared on any
|
|
313
|
+
terminal outcome.
|
|
314
|
+
- **The concurrent-refresh race is not reproduced.** Outlook's token writer used
|
|
315
|
+
a fixed `.tmp` name and could wipe valid tokens when two refreshes raced. The
|
|
316
|
+
Google writer uses a unique temp name per write, and its refresh catch never
|
|
317
|
+
clears valid tokens on an IO error. A losing concurrent writer must not wipe
|
|
318
|
+
credentials.
|
|
402
319
|
|
|
403
|
-
Refresh
|
|
404
|
-
|
|
405
|
-
re-consent until the brand is verified, not a refresh failure, and the health signal must
|
|
406
|
-
name it distinctly.
|
|
320
|
+
Refresh runs **in-process** against Google, within 5 minutes of access-token
|
|
321
|
+
expiry. Nothing in `platform/ui` participates.
|
|
407
322
|
|
|
408
323
|
---
|
|
409
324
|
|
|
410
|
-
##
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
1. **Authorization-code round-trip (Verdict 3, Option B) — the load-bearing step.** With the
|
|
427
|
-
Web-application client, open the consent URL for the Calendar scope with
|
|
428
|
-
`access_type=offline` and `prompt=consent`, consent as a listed test user, then copy the
|
|
429
|
-
`code` value from the address bar of the 404'd callback page. Exchange it against
|
|
430
|
-
`https://oauth2.googleapis.com/token` with the client id, client secret, the same
|
|
431
|
-
`redirect_uri`, and `grant_type=authorization_code`. Confirm the response carries a
|
|
432
|
-
**refresh token** and the granted `scope` includes the Calendar scope. Run this on the
|
|
433
|
-
device, where the client secret already lives; never paste the secret into a transcript.
|
|
434
|
-
Record the granted scope and the presence of a refresh token (never the tokens
|
|
435
|
-
themselves).
|
|
436
|
-
2. **Device-code refusal (Verdict 1) — optional, confirmatory only.** Verdict 1 already
|
|
437
|
-
rests on Google's published allowlist, which does not list any Calendar scope. Confirming
|
|
438
|
-
it empirically needs a *second*, throwaway client of type "TV and Limited Input", since a
|
|
439
|
-
Web-application client cannot exercise the device grant. Worth doing only if the recorded
|
|
440
|
-
refusal is wanted for the file; it changes no decision, because step 1 succeeding already
|
|
441
|
-
establishes the flow being built.
|
|
442
|
-
3. **Narrow-scope check (optional).** Repeat step 1 with `calendar.events` +
|
|
443
|
-
`calendar.readonly` + `calendar.freebusy` instead of `calendar`, and confirm event
|
|
444
|
-
create/update/cancel/respond/free-busy all work, to decide the narrower scope for Phase 2.
|
|
445
|
-
|
|
446
|
-
Paste the recorded outcome into this section. Once step 1 is recorded, the Phase 0 gate is
|
|
447
|
-
met and Phases 1–2 (the plugin build) proceed against the confirmed flow.
|
|
325
|
+
## What was removed
|
|
326
|
+
|
|
327
|
+
The earlier hosted-callback model built a hosted HTTPS callback at
|
|
328
|
+
`https://<brand-public-host>/api/google/oauth/callback`, served by the
|
|
329
|
+
`platform/ui` server, plus a refresh route and a house-only secret file. A
|
|
330
|
+
Desktop client cannot register an HTTPS redirect, so all of it is deleted:
|
|
331
|
+
`platform/ui/server/routes/google-oauth.ts` and its test, the
|
|
332
|
+
`/api/google/oauth/callback` allowlist entry, the mount in `server/index.ts`,
|
|
333
|
+
and the `MAXY_UI_INTERNAL_PORT` dependency. There is zero Google surface in
|
|
334
|
+
`platform/ui`, and a test asserts the public host still refuses that path.
|
|
335
|
+
|
|
336
|
+
**Devices touched by the earlier plugin may still hold
|
|
337
|
+
`platform/config/google-house.env`, containing the retired Web client's live
|
|
338
|
+
secret.** Nothing reads it and nothing removes it. Delete it on each such
|
|
339
|
+
device.
|
|
448
340
|
|
|
449
341
|
### Provisioned clients
|
|
450
342
|
|
|
451
343
|
| Brand | Client type | Redirect URI | Client ID | Status |
|
|
452
344
|
|---|---|---|---|---|
|
|
453
|
-
| `sitedesk-code` | ~~Web application~~ **RETIRED** | ~~`https://public.sitedesk.online/api/google/oauth/callback`~~ | `1032860640027-…` | **Do not use.** A Web client cannot register a loopback redirect, so this id fails `redirect_uri_mismatch` under the Desktop flow. Cleared from `brand.json
|
|
454
|
-
| `sitedesk-code` | Desktop app | `http://127.0.0.1` | *(not yet created)* | Awaiting provisioning in the **existing** `Sitedesk Calendar` project
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
**Devices touched by the earlier plugin may still hold `platform/config/google-house.env`
|
|
462
|
-
containing that live Web-client secret.** Nothing reads it any more and nothing
|
|
463
|
-
removes it. Delete it on each such device as part of retiring the Web client.
|
|
464
|
-
|
|
465
|
-
Per-brand next step for `sitedesk-code`: start **brand/consent-screen verification** to lift
|
|
466
|
-
the 100-test-user cap and the 7-day re-consent measured above. That review is the slow part;
|
|
467
|
-
everything else is minutes.
|
|
345
|
+
| `sitedesk-code` | ~~Web application~~ **RETIRED** | ~~`https://public.sitedesk.online/api/google/oauth/callback`~~ | `1032860640027-…` | **Do not use.** A Web client cannot register a loopback redirect, so this id fails `redirect_uri_mismatch` under the Desktop flow. Cleared from `brand.json`. Delete the client in the console, which revokes its secret with it — it was exposed to shell history during the manual round-trip, so it is retired rather than rotated. |
|
|
346
|
+
| `sitedesk-code` | Desktop app | `http://127.0.0.1` | *(not yet created)* | Awaiting provisioning in the **existing** `Sitedesk Calendar` project. |
|
|
347
|
+
|
|
348
|
+
No brand currently ships a populated `googleClientId`/`googleClientSecret`; the
|
|
349
|
+
plugin is inert everywhere until one does. Per-brand next step for
|
|
350
|
+
`sitedesk-code`: create the Desktop client per the runbook above, then start
|
|
351
|
+
**brand/consent-screen verification** to lift the 100-test-user cap and the
|
|
352
|
+
7-day re-consent. That review is the slow part; everything else is minutes.
|