Clickup OAuth2 support (#649)

* OAuth2 credentials, genericFunctions needed config, UI options for oauth2 support

*  Added options to decide when to to send the bearer

* Fixed "undefined property split" issue

*  Small fix

*  Improvements to ClickUp-Node

*  Improvements

Co-authored-by: Rupenieks <ru@myos,co>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Ricardo Espinoza <ricardo@n8n.io>
This commit is contained in:
Rupenieks
2020-09-16 09:16:06 +02:00
committed by GitHub
parent 7c54cf6ac2
commit 266112a8cb
7 changed files with 152 additions and 10 deletions

View File

@@ -34,9 +34,27 @@ export class ClickUpTrigger implements INodeType {
outputs: ['main'],
credentials: [
{
name: 'clickUpApi',
name: 'clickupApi',
required: true,
}
displayOptions: {
show: {
authentication: [
'accessToken',
],
},
},
},
{
name: 'clickUpOAuth2Api',
required: true,
displayOptions: {
show: {
authentication: [
'oAuth2',
],
},
},
},
],
webhooks: [
{
@@ -47,6 +65,22 @@ export class ClickUpTrigger implements INodeType {
},
],
properties: [
{
displayName: 'Authentication',
name: 'authentication',
type: 'options',
options: [
{
name: 'Access Token',
value: 'accessToken',
},
{
name: 'OAuth2',
value: 'oAuth2',
},
],
default: 'accessToken',
},
{
displayName: 'Team',
name: 'team',