Building Scalable n8n Workflows: How to Use OAuth 2.0 for Multi-User Workflows
The greatest challenge for n8n has always been in credential reuse i.e. if you have a workflow connecting to an app, you can not pass the credentials dynamically. You will find each node can only use a static credential and this can't be done dynamically
In the case you are building a Gmail manager, you will need to deploy a new agent for each Gmail account, or use multiple nodes with the user credentials. Not scalable
I dedicated tens of hours researching how to solve this and create one workflow that can be used within a whole organization without having to recreate it for each users credential in n8n AKA collecting external credentials for use in n8n
The solution? An oath workflow that allows users to log in with their own accounts and grant you permissions to what you need.
What you need
Happy productivity!
Cybersecurity | Risk Management | AI and Automation | ex-PwC
2 个月Awesome. Thanks
AI Automation Expert | n8n | Voice agent
2 个月Mindblowing Zacharia Kimotho!! I was looking for this type of solution for a long time. Thank you so much for sharing this.