Skip to content

Commit 5ac139d

Browse files
author
aadamgough
committed
cleaned up scopes
1 parent 0cf0bfb commit 5ac139d

3 files changed

Lines changed: 2 additions & 26 deletions

File tree

apps/sim/blocks/blocks/pipedrive.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,12 @@ export const PipedriveBlock: BlockConfig<PipedriveResponse> = {
4949
serviceId: 'pipedrive',
5050
requiredScopes: [
5151
'base',
52-
'deals:read',
5352
'deals:full',
54-
'contacts:read',
5553
'contacts:full',
56-
'leads:read',
5754
'leads:full',
58-
'activities:read',
5955
'activities:full',
60-
'mail:read',
6156
'mail:full',
62-
'projects:read',
63-
'projects:full',
64-
'webhooks:read',
65-
'webhooks:full',
57+
'projects:full'
6658
],
6759
placeholder: 'Select Pipedrive account',
6860
required: true,

apps/sim/lib/auth.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -674,20 +674,12 @@ export const auth = betterAuth({
674674
prompt: 'consent',
675675
scopes: [
676676
'base',
677-
'deals:read',
678677
'deals:full',
679-
'contacts:read',
680678
'contacts:full',
681-
'leads:read',
682679
'leads:full',
683-
'activities:read',
684680
'activities:full',
685-
'mail:read',
686681
'mail:full',
687-
'projects:read',
688-
'projects:full',
689-
'webhooks:read',
690-
'webhooks:full',
682+
'projects:full'
691683
],
692684
responseType: 'code',
693685
redirectURI: `${getBaseUrl()}/api/auth/oauth2/callback/pipedrive`,

apps/sim/lib/oauth/oauth.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -680,20 +680,12 @@ export const OAUTH_PROVIDERS: Record<string, OAuthProviderConfig> = {
680680
baseProviderIcon: (props) => PipedriveIcon(props),
681681
scopes: [
682682
'base',
683-
'deals:read',
684683
'deals:full',
685-
'contacts:read',
686684
'contacts:full',
687-
'leads:read',
688685
'leads:full',
689-
'activities:read',
690686
'activities:full',
691-
'mail:read',
692687
'mail:full',
693-
'projects:read',
694688
'projects:full',
695-
'webhooks:read',
696-
'webhooks:full',
697689
],
698690
},
699691
},

0 commit comments

Comments
 (0)