Added OAuth2 UI for trigger

This commit is contained in:
Rupenieks 2020-06-09 15:53:17 +02:00
parent bdad41f4e8
commit 5bce911b0f

View file

@ -42,7 +42,25 @@ export class ZendeskTrigger implements INodeType {
{
name: 'zendeskApi',
required: true,
}
displayOptions: {
show: {
authentication: [
'accessToken',
],
},
},
},
{
name: 'zendeskOAuth2Api',
required: true,
displayOptions: {
show: {
authentication: [
'oAuth2',
],
},
},
},
],
webhooks: [
{
@ -53,6 +71,23 @@ export class ZendeskTrigger implements INodeType {
},
],
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: 'Service',
name: 'service',