@sentry/junior-google 0.238.0 → 0.238.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/README.md CHANGED
@@ -64,10 +64,15 @@ admin to reconnect.
64
64
 
65
65
  ## Setup
66
66
 
67
- 1. In a Google Cloud project that the company owns, enable the Google Calendar
68
- API.
69
- 2. Configure the OAuth consent screen with user type **Internal**.
70
- 3. Create an OAuth client of type **Web application**. Add these redirect URIs:
67
+ The plugin uses the same Google OAuth client as dashboard sign-in. Each
68
+ sign-in requests only its own scopes, so dashboard sign-in still asks only for
69
+ identity.
70
+
71
+ 1. In the Google Cloud project of the dashboard OAuth client, enable the
72
+ Google Calendar API.
73
+ 2. On the OAuth consent screen, use user type **Internal** and add the
74
+ Calendar scopes above.
75
+ 3. On the OAuth client, add these redirect URIs:
71
76
  - `https://<junior host>/api/plugins/google/oauth/callback`
72
77
  - `http://127.0.0.1:8765/oauth/callback`, for the CLI. Use another port with
73
78
  `junior google connect --port`.
@@ -76,8 +81,8 @@ admin to reconnect.
76
81
 
77
82
  | Variable | Purpose |
78
83
  | ---------------------------------- | ----------------------------------------------- |
79
- | `GOOGLE_WORKSPACE_CLIENT_ID` | OAuth client id |
80
- | `GOOGLE_WORKSPACE_CLIENT_SECRET` | OAuth client secret |
84
+ | `GOOGLE_CLIENT_ID` | OAuth client id, shared with dashboard sign-in |
85
+ | `GOOGLE_CLIENT_SECRET` | OAuth client secret |
81
86
  | `GOOGLE_WORKSPACE_ACCOUNT_EMAIL` | The account Junior acts as |
82
87
  | `GOOGLE_WORKSPACE_ALLOWED_DOMAINS` | Optional comma-separated domains to schedule in |
83
88
 
package/dist/config.d.ts CHANGED
@@ -3,8 +3,9 @@
3
3
  *
4
4
  * Values come from host environment variables. They never reach the sandbox.
5
5
  */
6
- export declare const GOOGLE_CLIENT_ID_ENV = "GOOGLE_WORKSPACE_CLIENT_ID";
7
- export declare const GOOGLE_CLIENT_SECRET_ENV = "GOOGLE_WORKSPACE_CLIENT_SECRET";
6
+ /** Dashboard sign-in uses the same OAuth client. */
7
+ export declare const GOOGLE_CLIENT_ID_ENV = "GOOGLE_CLIENT_ID";
8
+ export declare const GOOGLE_CLIENT_SECRET_ENV = "GOOGLE_CLIENT_SECRET";
8
9
  export declare const GOOGLE_ACCOUNT_EMAIL_ENV = "GOOGLE_WORKSPACE_ACCOUNT_EMAIL";
9
10
  export declare const GOOGLE_ALLOWED_DOMAINS_ENV = "GOOGLE_WORKSPACE_ALLOWED_DOMAINS";
10
11
  /**
package/dist/index.js CHANGED
@@ -9,8 +9,8 @@ import { userInfo } from "os";
9
9
  import { InvalidArgumentError } from "commander";
10
10
 
11
11
  // src/config.ts
12
- var GOOGLE_CLIENT_ID_ENV = "GOOGLE_WORKSPACE_CLIENT_ID";
13
- var GOOGLE_CLIENT_SECRET_ENV = "GOOGLE_WORKSPACE_CLIENT_SECRET";
12
+ var GOOGLE_CLIENT_ID_ENV = "GOOGLE_CLIENT_ID";
13
+ var GOOGLE_CLIENT_SECRET_ENV = "GOOGLE_CLIENT_SECRET";
14
14
  var GOOGLE_ACCOUNT_EMAIL_ENV = "GOOGLE_WORKSPACE_ACCOUNT_EMAIL";
15
15
  var GOOGLE_ALLOWED_DOMAINS_ENV = "GOOGLE_WORKSPACE_ALLOWED_DOMAINS";
16
16
  var GOOGLE_CALENDAR_SCOPES = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-google",
3
- "version": "0.238.0",
3
+ "version": "0.238.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -25,7 +25,7 @@
25
25
  "commander": "^14.0.3",
26
26
  "drizzle-orm": "^0.45.2",
27
27
  "zod": "^4.5.4",
28
- "@sentry/junior-plugin-api": "0.238.0"
28
+ "@sentry/junior-plugin-api": "0.238.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@oxlint/plugins": "1.79.0",