OAuth2 support

This commit is contained in:
Rupenieks
2020-06-09 15:48:40 +02:00
parent 516a56ea32
commit 48765b7db6
5 changed files with 121 additions and 23 deletions

View File

@@ -61,9 +61,44 @@ export class Pipedrive implements INodeType {
{
name: 'pipedriveApi',
required: true,
}
displayOptions: {
show: {
authentication: [
'accessToken',
],
},
},
},
{
name: 'pipedriveOAuth2Api',
required: true,
displayOptions: {
show: {
authentication: [
'oAuth2',
],
},
},
},
],
properties: [
{
displayName: 'Authentication',
name: 'authentication',
type: 'options',
options: [
{
name: 'Access Token',
value: 'accessToken',
},
{
name: 'OAuth2',
value: 'oAuth2',
},
],
default: 'accessToken',
description: 'The resource to operate on.',
},
{
displayName: 'Resource',
name: 'resource',