Skip to content

Google 凭据#

本节包含:

OAuth2 和 Service Account#

Google 服务节点有两种可用的身份验证方法:

n8n Cloud 用户的 Managed OAuth2#

Managed OAuth2 托管 OAuth2 适用于以下 Google 节点(仅限 n8n Cloud 用户)。这提供了简化的凭据创建流程:

兼容节点#

配置完成后,您可以使用凭据来验证以下节点。大多数节点都兼容 OAuth2 身份验证。对服务账户身份验证的支持有限。

节点 OAuth 服务账户
Google Ads ✅ ❌
Gmail ✅ ⚠
Google Analytics ✅ ❌
Google BigQuery ✅ ✅
Google Books ✅ ✅
Google Calendar ✅ ❌
Google Chat ✅ ✅
Google Cloud Storage ✅ ❌
Google Contacts ✅ ❌
Google Cloud Firestore ✅ ✅
Google Cloud Natural Language ✅ ❌
Google Cloud Realtime Database ✅ ❌
Google Docs ✅ ✅
Google Drive ✅ ✅
Google Drive Trigger ✅ ✅
Google Perspective ✅ ❌
Google Sheets ✅ ✅
Google Slides ✅ ✅
Google Tasks ✅ ❌
Google Translate ✅ ✅
Google Workspace Admin ✅ ❌
YouTube ✅ ❌

Gmail 和服务账户

Google 技术上支持在 Gmail 中使用服务账户,但这需要启用域范围委派(Google 不建议使用),并且其行为可能不一致。

n8n 建议在 Gmail 节点中使用 OAuth2。