I am working on a SAAS solution for which I use N8N as the backend. Part of the solution involves saving files in the OneDrive and GoogleDrive of customers. It is easy to connect my own OneDrive or GoogleDrive to N8N. However, I am unsure of the best way to save files to the OneDrive or GoogleDrive of customers. I am looking for a method where customers can easily connect their OneDrive or GoogleDrive from the frontend of the SAAS. Is this even possible with N8N?
Generally speaking, you’d have to register your n8n app with Azure for OneDrive and Google Cloud Console for Google Drive to get OAuth 2.0 credentials. Then set up OAuth2 credentials in n8n and create workflows for file operations.
On your frontend you will have to implement the OAuth flow, allowing users to authorize access to their accounts. On your backend you can exchange the authorization code for tokens and storing them securely and then use them to configure the n8n workflows dynamically.
Thank you for your response. I think it will quickly become an expensive endeavor. The SaaS service I’m working on doesn’t generate any revenue yet, and I plan to start with low investment costs.