diff --git a/packages/nodes-base/nodes/Pipedrive/GenericFunctions.ts b/packages/nodes-base/nodes/Pipedrive/GenericFunctions.ts index 9809d0feb3..59ba514acf 100644 --- a/packages/nodes-base/nodes/Pipedrive/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Pipedrive/GenericFunctions.ts @@ -62,7 +62,7 @@ export async function pipedriveApiRequest(this: IHookFunctions | IExecuteFunctio let responseData; try { - if (authenticationMethod === 'accessToken') { + if (authenticationMethod === 'basicAuth') { const credentials = this.getCredentials('pipedriveApi'); if (credentials === undefined) { diff --git a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts index 3aef48ce59..48a619a331 100644 --- a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts +++ b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts @@ -64,7 +64,7 @@ export class Pipedrive implements INodeType { displayOptions: { show: { authentication: [ - 'accessToken', + 'basicAuth', ], }, }, @@ -88,16 +88,20 @@ export class Pipedrive implements INodeType { type: 'options', options: [ { - name: 'Access Token', - value: 'accessToken', + name: 'Basic Auth', + value: 'basicAuth' }, { name: 'OAuth2', value: 'oAuth2', }, + { + name: 'None', + value: 'none', + }, ], - default: 'accessToken', - description: 'The resource to operate on.', + default: 'basicAuth', + description: 'Method of authentication.', }, { displayName: 'Resource', diff --git a/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts b/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts index 0fb3d37f99..ca4a1a7ec8 100644 --- a/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts +++ b/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts @@ -55,7 +55,7 @@ export class PipedriveTrigger implements INodeType { displayOptions: { show: { authentication: [ - 'accessToken', + 'basicAuth', ], }, }, @@ -72,6 +72,7 @@ export class PipedriveTrigger implements INodeType { }, }, ], + ], webhooks: [ { name: 'default', @@ -87,17 +88,20 @@ export class PipedriveTrigger implements INodeType { type: 'options', options: [ { - name: 'Access Token', - value: 'accessToken' + name: 'Basic Auth', + value: 'basicAuth' }, { name: 'OAuth2', - value: 'oAuth2' + value: 'oAuth2', + }, + { + name: 'None', + value: 'none', }, - ], - default: 'accessToken', - description: 'If authentication should be activated for the webhook (makes it more scure).', + default: 'basicAuth', + description: 'Method of authentication.', }, { displayName: 'Action',