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

@@ -52,14 +52,21 @@ export class PipedriveTrigger implements INodeType {
{
name: 'pipedriveApi',
required: true,
displayOptions: {
show: {
authentication: [
'accessToken',
],
},
},
},
{
name: 'httpBasicAuth',
name: 'pipedriveOAuth2Api',
required: true,
displayOptions: {
show: {
authentication: [
'basicAuth',
'oAuth2',
],
},
},
@@ -80,15 +87,16 @@ export class PipedriveTrigger implements INodeType {
type: 'options',
options: [
{
name: 'Basic Auth',
value: 'basicAuth'
name: 'Access Token',
value: 'accessToken'
},
{
name: 'None',
value: 'none'
name: 'OAuth2',
value: 'oAuth2'
},
],
default: 'none',
default: 'accessToken',
description: 'If authentication should be activated for the webhook (makes it more scure).',
},
{