OAuth2 credentials, genericFunctions modded, oauth2 ui changes

This commit is contained in:
Rupenieks
2020-06-08 16:58:32 +02:00
parent 516a56ea32
commit 46147e0d97
4 changed files with 92 additions and 8 deletions

View File

@@ -66,9 +66,43 @@ export class PagerDuty implements INodeType {
{
name: 'pagerDutyApi',
required: true,
displayOptions: {
show: {
authentication: [
'accessToken',
],
},
},
},
{
name: 'pagerDutyOAuth2Api',
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',
},
{
displayName: 'Resource',
name: 'resource',