mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
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:
parent
68fb1c64dc
commit
f958e6ffab
|
@ -71,12 +71,12 @@ export class GoogleBigQuery implements INodeType {
|
||||||
noDataExpression: true,
|
noDataExpression: true,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'Service Account',
|
name: 'OAuth2 (Recommended)',
|
||||||
value: 'serviceAccount',
|
value: 'oAuth2',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'OAuth2',
|
name: 'Service Account',
|
||||||
value: 'oAuth2',
|
value: 'serviceAccount',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'oAuth2',
|
default: 'oAuth2',
|
||||||
|
|
|
@ -26,7 +26,7 @@ export class GoogleBooks implements INodeType {
|
||||||
name: 'googleBooks',
|
name: 'googleBooks',
|
||||||
icon: 'file:googlebooks.svg',
|
icon: 'file:googlebooks.svg',
|
||||||
group: ['input', 'output'],
|
group: ['input', 'output'],
|
||||||
version: 1,
|
version: [1, 2],
|
||||||
description: 'Read data from Google Books',
|
description: 'Read data from Google Books',
|
||||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||||
defaults: {
|
defaults: {
|
||||||
|
@ -74,6 +74,36 @@ export class GoogleBooks implements INodeType {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'serviceAccount',
|
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',
|
displayName: 'Resource',
|
||||||
|
|
|
@ -36,7 +36,7 @@ export class GoogleDocs implements INodeType {
|
||||||
name: 'googleDocs',
|
name: 'googleDocs',
|
||||||
icon: 'file:googleDocs.svg',
|
icon: 'file:googleDocs.svg',
|
||||||
group: ['input'],
|
group: ['input'],
|
||||||
version: 1,
|
version: [1, 2],
|
||||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||||
description: 'Consume Google Docs API.',
|
description: 'Consume Google Docs API.',
|
||||||
defaults: {
|
defaults: {
|
||||||
|
@ -84,6 +84,36 @@ export class GoogleDocs implements INodeType {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'serviceAccount',
|
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',
|
displayName: 'Resource',
|
||||||
|
|
|
@ -69,6 +69,36 @@ export class GoogleDrive implements INodeType {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'serviceAccount',
|
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',
|
displayName: 'Resource',
|
||||||
|
|
|
@ -66,12 +66,12 @@ export class GoogleDriveTrigger implements INodeType {
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'Service Account',
|
name: 'OAuth2 (Recommended)',
|
||||||
value: 'serviceAccount',
|
value: 'oAuth2',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'OAuth2',
|
name: 'Service Account',
|
||||||
value: 'oAuth2',
|
value: 'serviceAccount',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'oAuth2',
|
default: 'oAuth2',
|
||||||
|
|
|
@ -108,12 +108,12 @@ export class Gmail implements INodeType {
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'Service Account',
|
name: 'OAuth2 (Recommended)',
|
||||||
value: 'serviceAccount',
|
value: 'oAuth2',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'OAuth2',
|
name: 'Service Account',
|
||||||
value: 'oAuth2',
|
value: 'serviceAccount',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'oAuth2',
|
default: 'oAuth2',
|
||||||
|
|
|
@ -38,7 +38,7 @@ export class GoogleSheets implements INodeType {
|
||||||
name: 'googleSheets',
|
name: 'googleSheets',
|
||||||
icon: 'file:googleSheets.svg',
|
icon: 'file:googleSheets.svg',
|
||||||
group: ['input', 'output'],
|
group: ['input', 'output'],
|
||||||
version: 1,
|
version: [1, 2],
|
||||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||||
description: 'Read, update and write data to Google Sheets',
|
description: 'Read, update and write data to Google Sheets',
|
||||||
defaults: {
|
defaults: {
|
||||||
|
@ -87,6 +87,36 @@ export class GoogleSheets implements INodeType {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'serviceAccount',
|
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',
|
displayName: 'Resource',
|
||||||
|
|
|
@ -21,7 +21,7 @@ export class GoogleSlides implements INodeType {
|
||||||
name: 'googleSlides',
|
name: 'googleSlides',
|
||||||
icon: 'file:googleslides.svg',
|
icon: 'file:googleslides.svg',
|
||||||
group: ['input', 'output'],
|
group: ['input', 'output'],
|
||||||
version: 1,
|
version: [1, 2],
|
||||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||||
description: 'Consume the Google Slides API',
|
description: 'Consume the Google Slides API',
|
||||||
defaults: {
|
defaults: {
|
||||||
|
@ -69,6 +69,36 @@ export class GoogleSlides implements INodeType {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'serviceAccount',
|
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',
|
displayName: 'Resource',
|
||||||
|
|
|
@ -27,7 +27,7 @@ export class GoogleTranslate implements INodeType {
|
||||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||||
icon: 'file:googletranslate.png',
|
icon: 'file:googletranslate.png',
|
||||||
group: ['input', 'output'],
|
group: ['input', 'output'],
|
||||||
version: 1,
|
version: [1, 2],
|
||||||
description: 'Translate data using Google Translate',
|
description: 'Translate data using Google Translate',
|
||||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||||
defaults: {
|
defaults: {
|
||||||
|
@ -75,6 +75,36 @@ export class GoogleTranslate implements INodeType {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'serviceAccount',
|
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',
|
displayName: 'Resource',
|
||||||
|
|
Loading…
Reference in a new issue