Register users and authenticate with magic links using Google Sheets — n8n ワークフロー
概要
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
ワークフロープレビュー
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
トリガー
このワークフローは トリガー トリガーで開始します。
- 2
処理
データは 30 個のノードを流れます, connecting code, form, formtrigger。
- 3
出力
ワークフローは自動化を完了し、設定された宛先に結果を配信します。
ノード詳細 (30)
GO#1
Google Sheets
googleSheets
GM#2
Gmail
gmail
CO#3
Code
code
このワークフローのインポート方法
- 1右側の JSONをダウンロード ボタンをクリックしてワークフローファイルを保存します。
- 2n8nインスタンスを開き、ワークフロー → 新規 → ファイルからインポート に進みます。
- 3ダウンロードした
register-users-and-authenticate-with-magic-links-using-google-sheetsファイルを選択し、インポートをクリックします。 - 4各サービスノードの 認証情報(APIキー、OAuthなど)を設定します。
- 5ワークフローをテスト をクリックして動作確認し、有効化します。
またはn8nの JSONからインポート に直接貼り付け:
{ "name": "Register users and authenticate with magic links using Google Sheets", "nodes": [...], ...}
インテグレーション
codeformformtriggergmailgooglesheetsifrespondtowebhookwebhook
作成者
ICTS Automation
@ictsautomation
タグ
codeformformtriggergmailgooglesheetsifrespondtowebhookwebhook