Register users and authenticate with magic links using Google Sheets — Workflow n8n

Élevé complexité Déclencheur30 nœuds🏷️ Miscellaneous👁 2 vuespar ICTS Automation

Aperçu

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

Nœuds utilisés

Google SheetsGmailCode

Aperçu du workflow

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

Comment ça fonctionne

  1. 1

    Déclencheur

    Le workflow démarre avec un déclencheur déclencheur.

  2. 2

    Traitement

    Les données transitent par 30 nœuds, connecting code, form, formtrigger.

  3. 3

    Sortie

    Le workflow termine son automatisation et livre le résultat à la destination configurée.

Détails des nœuds (30)

GO

Google Sheets

googleSheets

#1
GM

Gmail

gmail

#2
CO

Code

code

#3

Comment importer ce workflow

  1. 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
  2. 2Ouvrez votre instance n8n. Accédez à Workflows → Nouveau → Importer depuis un fichier.
  3. 3Sélectionnez le fichier register-users-and-authenticate-with-magic-links-using-google-sheets téléchargé et cliquez sur Importer.
  4. 4Configurez les identifiants pour chaque nœud de service (clés API, OAuth, etc.).
  5. 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.

Ou collez directement dans n8n → Importer depuis JSON :

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

Intégrations

codeformformtriggergmailgooglesheetsifrespondtowebhookwebhook

Obtenir ce workflow

Téléchargez et importez en un clic

Télécharger JSONVoir sur n8n.io
Nœuds30
Complexitéhigh
Déclencheurtrigger
Vues2
CatégorieMiscellaneous

Créé par

ICTS Automation

ICTS Automation

@ictsautomation

Tags

codeformformtriggergmailgooglesheetsifrespondtowebhookwebhook

Nouveau sur n8n ?

n8n est un outil d'automatisation de workflows gratuit et open-source. Hébergez-le vous-même ou utilisez la version cloud.

Obtenir n8n gratuitement →

Related Miscellaneous Workflows