Commit 2d3d0a66c25c

Vincent Demeester <vincent@sbr.pm>
2026-05-19 09:16:03
feat(dots): update google-workspace OAuth config
Upgraded presentations scope from readonly to full access and disabled ADC fallback since gcloud ADC lacks Workspace scopes.
1 parent 754ea22
Changed files (1)
dots
config
claude
skills
google-workspace
scripts
dots/config/claude/skills/google-workspace/scripts/common.js
@@ -30,7 +30,7 @@ export const DEFAULT_SCOPES = [
   "https://www.googleapis.com/auth/userinfo.profile",
   "https://www.googleapis.com/auth/gmail.modify",
   "https://www.googleapis.com/auth/directory.readonly",
-  "https://www.googleapis.com/auth/presentations.readonly",
+  "https://www.googleapis.com/auth/presentations",
   "https://www.googleapis.com/auth/spreadsheets.readonly",
 ];
 
@@ -233,11 +233,11 @@ export async function authorize(options = {}) {
 
   loadRuntimeDeps();
 
-  // Try Application Default Credentials first (from gcloud)
-  const adcClient = await authorizeWithADC(scopes);
-  if (adcClient) {
-    return adcClient;
-  }
+  // Skip ADC — gcloud ADC lacks Workspace scopes
+  // const adcClient = await authorizeWithADC(scopes);
+  // if (adcClient) {
+  //   return adcClient;
+  // }
 
   // Fall back to custom OAuth client with stored token
   ensureConfigDir();