refactor: Change Google nodes to use OAuth2 as default (#3713)

* upstream merge

*  oAuth2 by default for Google nodes

*  lockfile fix
This commit is contained in:
Michael Kret
2022-07-18 11:15:03 +03:00
committed by GitHub
parent 68fb1c64dc
commit f958e6ffab
9 changed files with 197 additions and 17 deletions

View File

@@ -38,7 +38,7 @@ export class GoogleSheets implements INodeType {
name: 'googleSheets',
icon: 'file:googleSheets.svg',
group: ['input', 'output'],
version: 1,
version: [1, 2],
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Read, update and write data to Google Sheets',
defaults: {
@@ -87,6 +87,36 @@ export class GoogleSheets implements INodeType {
},
],
default: 'serviceAccount',
displayOptions: {
show: {
'@version': [
1,
],
}
},
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'options',
options: [
{
name: 'OAuth2 (Recommended)',
value: 'oAuth2',
},
{
name: 'Service Account',
value: 'serviceAccount',
},
],
default: 'oAuth2',
displayOptions: {
show: {
'@version': [
2,
],
}
},
},
{
displayName: 'Resource',