Credentials, oauth2 supported genericfunctions, oauth2 UI mod

This commit is contained in:
Rupenieks
2020-06-08 17:50:18 +02:00
parent 516a56ea32
commit ddb48dc9db
4 changed files with 100 additions and 13 deletions

View File

@@ -34,7 +34,25 @@ export class WebflowTrigger implements INodeType {
{
name: 'webflowApi',
required: true,
}
displayOptions: {
show: {
authentication: [
'accessToken',
],
},
},
},
{
name: 'webflowOAuth2Api',
required: true,
displayOptions: {
show: {
authentication: [
'oAuth2',
],
},
},
},
],
webhooks: [
{
@@ -45,6 +63,23 @@ export class WebflowTrigger implements INodeType {
},
],
properties: [
{
displayName: 'Authentication',
name: 'authentication',
type: 'options',
options: [
{
name: 'Access Token',
value: 'accessToken',
},
{
name: 'OAuth2',
value: 'oAuth2',
},
],
default: 'accessToken',
description: 'Method of authentication.',
},
{
displayName: 'Site',
name: 'site',