Register users and authenticate with magic links using Google Sheets — n8n 工作流

复杂度 触发器30 个节点🏷️ Miscellaneous👁 2 次查看作者:ICTS Automation

概览

This workflow implements a lightweight authentication system for n8n web portals using Google Sheets as a simple user and session store. It supports email-based registration, username and password login, one-click magic link authentication, and cookie-based session management.

How it works Users register with an email address through a form. The workflow generates a password and a one-time authentication token. User credentials and token are stored in Google Sheets. An email is sent with login

使用的节点

Google SheetsGmailCode

工作流预览

1. Login
Validate username and password against Google Sheets, t
0. Register
Collect an email address via form, generate credentials
2. Auth
Validate the one-time token via Google Sheets, generate
3. Profile
Read the sid cookie, look up the active session in Goog
Overview
This workflow provides a lightweight authentication flo
Append or update row in …
Prepare sid
Generate token
I
If has token in DB
I
If has token
Search by token
O
On form register
Create password and token
Send username/password
N
Notice register success
O
On form login
Check username/password
I
If login success
R
Redirect to login form
R
Redirect to auth url
Add token to DB
R
Redirect to auth with ne…
A
Auth
I
Invalid token
I
If token valid
R
Redirect to login form1
Update sid
R
Redirect to profile and …
P
Profile
Check sid cookies header
Search sid
I
If has data with sid
R
Redirect to login
Prepare html
S
Show profile page
30 nodes26 edges

工作原理

  1. 1

    触发器

    工作流由 触发器 触发器启动。

  2. 2

    处理

    数据流经 30 个节点, connecting code, form, formtrigger。

  3. 3

    输出

    工作流完成自动化并将结果发送到配置的目标。

节点详情 (30)

GO

Google Sheets

googleSheets

#1
GM

Gmail

gmail

#2
CO

Code

code

#3

如何导入此工作流

  1. 1点击右侧 下载 JSON 按钮保存工作流文件。
  2. 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入
  3. 3选择下载的 register-users-and-authenticate-with-magic-links-using-google-sheets 文件并点击导入。
  4. 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
  5. 5点击 测试工作流 验证一切正常,然后激活它。

或直接在 n8n → 从 JSON 导入 中粘贴:

{ "name": "Register users and authenticate with magic links using Google Sheets", "nodes": [...], ...}

集成

codeformformtriggergmailgooglesheetsifrespondtowebhookwebhook

获取此工作流

一键下载并导入

下载 JSON在 n8n.io 上查看
节点30
复杂度high
触发器trigger
查看次数2

创建者

ICTS Automation

ICTS Automation

@ictsautomation

标签

codeformformtriggergmailgooglesheetsifrespondtowebhookwebhook

n8n 新手?

n8n 是一款免费开源的工作流自动化工具,支持自托管或使用云版本。

免费获取 n8n →

Related Miscellaneous Workflows