Add OAuth2 support to Mautic-Trigger Node

This commit is contained in:
Jan Oberhauser 2020-06-13 16:43:37 +02:00
parent 5430a72209
commit 8d8d9f256f

View file

@ -38,7 +38,25 @@ export class MauticTrigger implements INodeType {
{
name: 'mauticApi',
required: true,
}
displayOptions: {
show: {
authentication: [
'credentials',
],
},
},
},
{
name: 'mauticOAuth2Api',
required: true,
displayOptions: {
show: {
authentication: [
'oAuth2',
],
},
},
},
],
webhooks: [
{
@ -49,6 +67,22 @@ export class MauticTrigger implements INodeType {
},
],
properties: [
{
displayName: 'Authentication',
name: 'authentication',
type: 'options',
options: [
{
name: 'Credentials',
value: 'credentials',
},
{
name: 'OAuth2',
value: 'oAuth2',
},
],
default: 'credentials',
},
{
displayName: 'Events',
name: 'events',