Zum Inhalt springen
NEUMarktplatz und trig8n Agent: Verkaufen Sie, was Sie bauen, und erhalten Sie Pläne und Änderungen, die getestet sind, bevor Sie sie sehen. Neuigkeiten ansehen

Bibliothek / Sicherheit & Compliance

Sicherheit & Compliance

OAuth-Tokens mit Airtable-Speicherung erzeugen und validieren

Sendet ein Client eine Anfrage an den Webhook, validiert der Workflow das Client-Secret, erzeugt ein Token und speichert es in Airtable.

Was sie bewirkt

## OAuth Token Generator and Validator This n8n template helps you generate, validate, and store tokens for your customers securely using: - n8n as your backend automation engine - Airtable as your lightweight client and token store --- ### 🚀 What It Does - Accepts client_id and client_secret via POST webhook. - Validates client credentials against Airtable. - Generates a long token on success. - Stores the generated token in Airtable with metadata. - Responds with a JSON containing the token, expiry, and type. - Returns clear error messages if validation fails. --- ### How It Works 1. Webhook node receives client_id and client_secret. 2. Validator (Code node) checks: - Body contains only client_id and client_secret. - Rejects missing or extra fields. 3. Airtable search: - Looks up the client_id. - Rejects if not found. 4. Secret validation (If node): - Compares provided client_secret with stored value. - Rejects if incorrect. 5. Token generation (Code node): - Generates a 128-character secure token. 6. Airtable create: - Stores token, client ID, creation date, and type. 7. Webhook response: - Returns JSON { access_token, expires_in, token_type } on success. - Returns appropriate JSON error messages on failure. --- ### Related Workflow You can also use it with the published Bearer Token Validation workflow: 👉 Validate API Requests with Bearer Token Authentication and Airtable to securely validate tokens you generate with this workflow across your protected endpoints. --- ### Why Use This - Provides OAuth-like flows without a complex backend. - Uses n8n + Airtable for client management and token storage. - Clean, modular, and ready for your SaaS or internal API automations. - Extendable for token expiry, refresh, and rotation handling. --- Enjoy building secure token-based APIs using n8n + Airtable! 🚀 ### Built by: Nazmy

Die Schritte

  1. success
  2. validation failed
  3. secret validation
  4. invalid client
  5. invalid secret
  6. generate token
  7. client exists
  8. validator
  9. client receiver
  10. get client id
  11. create token
  12. respond
  13. Other methods
  14. 405 Error

Insgesamt 16 Schritte.

Ähnliche Automatisierungen