Skip to content

Commit fd48bf1

Browse files
aadamgoughAdam Gough
authored andcommitted
fix(google-scopes): removed unnecessary google scopes (#849)
* removed unnecessary google scopes * bun run lint #849 --------- Co-authored-by: Adam Gough <adamgough@Mac.attlocal.net>
1 parent 2ba6152 commit fd48bf1

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
@@ -136,10 +136,7 @@ export const OAUTH_PROVIDERS: Record<string, OAuthProviderConfig> = {
136136
providerId: 'google-sheets',
137137
icon: (props) => GoogleSheetsIcon(props),
138138
baseProviderIcon: (props) => GoogleIcon(props),
139-
scopes: [
140-
'https://www.googleapis.com/auth/spreadsheets',
141-
'https://www.googleapis.com/auth/drive.file',
142-
],
139+
scopes: ['https://www.googleapis.com/auth/drive.file'],
143140
},
144141
'google-calendar': {
145142
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)