OAuth2 support, changed url to subdomain in credentials

This commit is contained in:
Rupenieks
2020-06-09 14:00:41 +02:00
parent 516a56ea32
commit bdad41f4e8
5 changed files with 146 additions and 13 deletions

View File

@@ -52,9 +52,44 @@ export class Zendesk implements INodeType {
{
name: 'zendeskApi',
required: true,
}
displayOptions: {
show: {
authentication: [
'accessToken',
],
},
},
},
{
name: 'zendeskOAuth2Api',
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',