Demo/Section 2/n8n nightly sweep, machine identity
Section 2 · Step 2

n8n nightly sweep, machine identity

A scheduled workflow that flags stale loans. Registered in Descope as a machine identity — authenticates via client_credentials, secrets live in the Connections vault.

n8n·northwind / nightly-stale-loans
last ran 02:00 UTC · 28 records
  1. Schedule trigger
    Cron
  2. Fetch stale loans · HubSpot
    HTTP
    Descope vault · client_credentials
  3. Enrich borrower · external API
    HTTP
    Descope vault · ek_l…uM91
  4. Flag risky loans · Slack #risk-ops
    Slack
    Descope vault · OAuth
n8n node config — for the curious
{
  "name": "Fetch stale loans",
  "type": "n8n-nodes-base.httpRequest",
  "credentials": {
    "descopeConnection": "hubspot-client-credentials"
  }
}
// No client_id, no client_secret, no API key.
// The Descope node resolves the credential at run time.
Descope Console·Connections / Vault

Stored credentials

2 entries
  • HubSpotOAuth
    scope: hubspot:read·for machine client_n8nBatch…7p2m
    issued 12m ago
    expires in 48m
  • Enrichment API (clearbit-style)API key
    scope: ek_l…uM91·for machine client_n8nBatch…7p2m
    issued 12 days ago
    expires no expiry
Operate

Each action runs against the mock state — no real services are called.