OAuth (Open Authorisation)
An authentication standard that lets users grant third-party apps access to their accounts without sharing passwords. Most modern SaaS tools use OAuth for API access. OAuth tokens expire and require refresh logic in long-running automations.
Expert insight
OAuth tokens that expire mid-workflow silently break it. Always build token refresh logic into long-running automations.
In a real workflow
A workflow connects to Google Drive through OAuth, so it never stores a password and access can be revoked from Google.
Common mistakes
- Requesting far more permissions than the workflow needs.
- Not handling expired refresh tokens.
Complexity level
Requires some familiarity with automation concepts.
Related terms
See it in action
Want OAuth (Open Authorisation) built into your automation?
Book a free audit and we'll show you exactly how this applies to your business.
Get my free automation plan →Who we build for
Run a firm, an agency or an online store? We automate the work behind it.
Done-for-you n8n workflows and Claude AI agents, fixed price, maintained for you.
- Professional firms Onboarding, documents, billing and reporting run on their own. See what we automate →
- Agencies and SaaS teams Custom n8n and Claude builds, client reporting and internal tools. See what we automate →
- E-commerce brands Orders, support, returns and stock handled without the busywork. See what we automate →
More in Security
Keep exploring
Token (API)
A credential string used to authenticate API requests. Tokens are eith…
Webhook security
Verifying that incoming webhooks are genuinely from the expected sourc…
Access token
A short-lived credential issued after OAuth authentication that grants…
Audit trail
A chronological record of all actions taken by an automation who trigg…
Client credentials flow
An OAuth flow where a server-side application authenticates directly u…
Data residency
Where data is physically stored and processed. Regulated industries (f…
Go deeper
Guides that cover OAuth
n8n Webhook URL: Test vs Production, and How to Change It
Every n8n Webhook node has two URLs. When to use each, how to set a clean path, and how to make self-hosted n8n show your real domain instead of localhost.
n8n HTTP Request Authentication: API Keys, Bearer Tokens and OAuth2
How to send API keys and tokens from n8n without pasting them into the URL: predefined vs generic credentials, which generic type matches each API, and how to read 401 and 403 errors.
Fix redirect_uri_mismatch for n8n OAuth2 Credentials (Google, Microsoft and More)
"Error 400: redirect_uri_mismatch" means the redirect URL n8n sends is not registered in the provider's console. How to copy it exactly, and why self-hosted instances sometimes send the wrong one.