feat(Linear Node): Add support for OAuth2 (#7201)

This commit is contained in:
Jon
2023-09-20 10:19:12 +01:00
committed by GitHub
parent 6b582d155c
commit 12a3168367
5 changed files with 140 additions and 1 deletions

View File

@@ -29,6 +29,20 @@ export class LinearTrigger implements INodeType {
name: 'linearApi',
required: true,
testedBy: 'linearApiTest',
displayOptions: {
show: {
authentication: ['apiToken'],
},
},
},
{
name: 'linearOAuth2Api',
required: true,
displayOptions: {
show: {
authentication: ['oAuth2'],
},
},
},
],
webhooks: [
@@ -40,6 +54,22 @@ export class LinearTrigger implements INodeType {
},
],
properties: [
{
displayName: 'Authentication',
name: 'authentication',
type: 'options',
options: [
{
name: 'API Token',
value: 'apiToken',
},
{
name: 'OAuth2',
value: 'oAuth2',
},
],
default: 'apiToken',
},
{
displayName: 'Team Name or ID',
name: 'teamId',