Skip to content

Commit 9c3bcba

Browse files
aadamgoughAdam Gough
andauthored
fix(google-scopes): removed unnecessary google scopes (#849)
* removed unnecessary google scopes * bun run lint #849 --------- Co-authored-by: Adam Gough <[email protected]>
1 parent 6161bb8 commit 9c3bcba

File tree

9 files changed

+7
-12
lines changed

9 files changed

+7
-12
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/credential-selector/components/oauth-required-modal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ const SCOPE_DESCRIPTIONS: Record<string, string> = {
4343
'https://www.googleapis.com/auth/calendar': 'View and manage your calendar',
4444
'https://www.googleapis.com/auth/userinfo.email': 'View your email address',
4545
'https://www.googleapis.com/auth/userinfo.profile': 'View your basic profile info',
46-
'https://www.googleapis.com/auth/spreadsheets': 'View and manage your Google Sheets',
4746
'read:page:confluence': 'Read Confluence pages',
4847
'write:page:confluence': 'Write Confluence pages',
4948
'read:me': 'Read your profile information',

apps/sim/blocks/blocks/google_sheets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const GoogleSheetsBlock: BlockConfig<GoogleSheetsResponse> = {
3636
required: true,
3737
provider: 'google-sheets',
3838
serviceId: 'google-sheets',
39-
requiredScopes: ['https://www.googleapis.com/auth/spreadsheets'],
39+
requiredScopes: [],
4040
placeholder: 'Select Google account',
4141
},
4242
// Spreadsheet Selector

apps/sim/lib/auth.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ export const auth = betterAuth({
388388
scopes: [
389389
'https://www.googleapis.com/auth/userinfo.email',
390390
'https://www.googleapis.com/auth/userinfo.profile',
391-
'https://www.googleapis.com/auth/spreadsheets',
392391
'https://www.googleapis.com/auth/drive.file',
393392
],
394393
prompt: 'consent',

apps/sim/lib/oauth/oauth.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,7 @@ export const OAUTH_PROVIDERS: Record<string, OAuthProviderConfig> = {
131131
providerId: 'google-sheets',
132132
icon: (props) => GoogleSheetsIcon(props),
133133
baseProviderIcon: (props) => GoogleIcon(props),
134-
scopes: [
135-
'https://www.googleapis.com/auth/spreadsheets',
136-
'https://www.googleapis.com/auth/drive.file',
137-
],
134+
scopes: ['https://www.googleapis.com/auth/drive.file'],
138135
},
139136
'google-calendar': {
140137
id: 'google-calendar',

apps/sim/tools/gmail/draft.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const gmailDraftTool: ToolConfig<GmailSendParams, GmailToolResponse> = {
1212
oauth: {
1313
required: true,
1414
provider: 'google-email',
15-
additionalScopes: ['https://www.googleapis.com/auth/gmail.compose'],
15+
additionalScopes: [],
1616
},
1717

1818
params: {

apps/sim/tools/google_sheets/append.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const appendTool: ToolConfig<GoogleSheetsToolParams, GoogleSheetsAppendRe
1212
oauth: {
1313
required: true,
1414
provider: 'google-sheets',
15-
additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'],
15+
additionalScopes: [],
1616
},
1717
params: {
1818
accessToken: {

apps/sim/tools/google_sheets/read.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const readTool: ToolConfig<GoogleSheetsToolParams, GoogleSheetsReadRespon
99
oauth: {
1010
required: true,
1111
provider: 'google-sheets',
12-
additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'],
12+
additionalScopes: [],
1313
},
1414
params: {
1515
accessToken: {

apps/sim/tools/google_sheets/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const updateTool: ToolConfig<GoogleSheetsToolParams, GoogleSheetsUpdateRe
1212
oauth: {
1313
required: true,
1414
provider: 'google-sheets',
15-
additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'],
15+
additionalScopes: [],
1616
},
1717
params: {
1818
accessToken: {

apps/sim/tools/google_sheets/write.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const writeTool: ToolConfig<GoogleSheetsToolParams, GoogleSheetsWriteResp
99
oauth: {
1010
required: true,
1111
provider: 'google-sheets',
12-
additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'],
12+
additionalScopes: [],
1313
},
1414
params: {
1515
accessToken: {

0 commit comments

Comments
 (0)