clavarium 0.2.71-next.1 → 0.2.72-next.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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.71-next.1",
3
+ "version": "0.2.72-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.71-next.1",
9
+ "version": "0.2.72-next.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
@@ -14,7 +14,7 @@
14
14
  "clavarium-binder": "0.1.8-next.1",
15
15
  "clavarium-docket": "0.1.1",
16
16
  "clavarium-parley": "0.17.10-next.1",
17
- "clavarium-tether": "0.1.0-next.10",
17
+ "clavarium-tether": "0.1.0-next.11",
18
18
  "mermaid": "11.17.2",
19
19
  "node-pty": "^1.1.0",
20
20
  "pdfjs-dist": "6.4.299",
@@ -755,9 +755,9 @@
755
755
  }
756
756
  },
757
757
  "node_modules/clavarium-tether": {
758
- "version": "0.1.0-next.10",
759
- "resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.10.tgz",
760
- "integrity": "sha512-MIuKFhnAZCBNCWYd5ZjlEZo66ZCt+uSfiq5vc6Au2Dwg126W6OIVZ8MdZLsiGCNiW6KstFeycN7nasfLqlxBRA==",
758
+ "version": "0.1.0-next.11",
759
+ "resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.11.tgz",
760
+ "integrity": "sha512-GiLaCXmANy8OsiTacZIe5n+UUK+Lw33QzonZkU+vTVSx8X5g4fF4hzUkfRmpXWMDVWMuvTvptL/qIrJNbXJ9+Q==",
761
761
  "license": "MIT",
762
762
  "bin": {
763
763
  "tether": "bin/cli.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.71-next.1",
3
+ "version": "0.2.72-next.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
@@ -47,7 +47,7 @@
47
47
  "clavarium-binder": "0.1.8-next.1",
48
48
  "clavarium-docket": "0.1.1",
49
49
  "clavarium-parley": "0.17.10-next.1",
50
- "clavarium-tether": "0.1.0-next.10",
50
+ "clavarium-tether": "0.1.0-next.11",
51
51
  "mermaid": "11.17.2",
52
52
  "node-pty": "^1.1.0",
53
53
  "pdfjs-dist": "6.4.299",
package/server/oauth.mjs CHANGED
@@ -35,10 +35,16 @@ import { createHash, randomBytes } from 'node:crypto';
35
35
 
36
36
  const b64url = (buf) => Buffer.from(buf).toString('base64url');
37
37
 
38
- /* Per-provider endpoints, the scopes we may ask for by kind, and Thunderbird's
39
- built-in client as the default. `consentExtra` is what a provider needs on the
40
- consent URL to return a refresh token; `offlineScope` is the same thing when it
41
- is a scope rather than a parameter (Microsoft). */
38
+ /* Per-provider endpoints, the scopes we may ask for by kind, and a built-in,
39
+ already-verified open-source desktop client as the default (the `thunderbird`
40
+ field, kept by that name for its callers). WHICH client matters: a client is
41
+ only granted the scopes its app was verified for. For GOOGLE we borrow GNOME
42
+ Online Accounts' client, verified for mail AND calendar AND contacts, so one
43
+ consent gives all three. For MICROSOFT we use Thunderbird's client, verified
44
+ for mail (IMAP) only; Microsoft calendar/contacts go over Graph and need a
45
+ Graph-verified client -- see card #110. `consentExtra` is what a provider
46
+ needs on the consent URL to return a refresh token; `offlineScope` is the same
47
+ thing when it is a scope rather than a parameter (Microsoft). */
42
48
  export const PROVIDERS = {
43
49
  google: {
44
50
  label: 'Google',
@@ -52,9 +58,12 @@ export const PROVIDERS = {
52
58
  calendar: 'https://www.googleapis.com/auth/calendar',
53
59
  contacts: 'https://www.googleapis.com/auth/carddav',
54
60
  },
61
+ /* GNOME Online Accounts' built-in client (open source, embedded secret
62
+ sanctioned by Google for an installed app). Verified for mail,
63
+ calendar and contacts -- unlike Thunderbird's, which carries mail only. */
55
64
  thunderbird: {
56
- clientId: '406964657835-aq8lmia8j95dhl1a2bvharmfk3t1hgqj.apps.googleusercontent.com',
57
- clientSecret: 'kSmqreRr0qwBWJgbf5Y-PjSU',
65
+ clientId: '44438659992-7kgjeitenc16ssihbtdjbgguch7ju55s.apps.googleusercontent.com',
66
+ clientSecret: '-gMLuQyDiI0XrQS_vx_mhuYF',
58
67
  },
59
68
  },
60
69
  microsoft: {