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

@@ -36,7 +36,7 @@ export class GoogleDocs implements INodeType {
name: 'googleDocs',
icon: 'file:googleDocs.svg',
group: ['input'],
version: 1,
version: [1, 2],
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Consume Google Docs API.',
defaults: {
@@ -84,6 +84,36 @@ export class GoogleDocs 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',