Seeking Advice on Automating Client Connections with OAuth2 in n8n

Hello there,

I’m posting on the forum because I work for a company and we’re searching for the right automation service.

To briefly explain what we do and what we’re looking for:

We generate videos for clients and then post them on their social media accounts (YouTube, Instagram for Business, Facebook Pages, LinkedIn).

Problem: We currently connect our clients manually in our workflows, which is no longer sustainable given the number of clients we have.

We’re looking for a way to automatically connect each of our clients. We’re considering using the OAuth2 protocol but we’re unsure if this is possible and if n8n could be the right fit for this.

We currently use Zapier and Make, but we could easily migrate all our clients if the platform meets our needs.

Thank you in advance for your feedback and suggestions. I hope we can find a solution quickly.

Have a great weekend, everyone!


1 Like

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

I believe, you can find the solution to your answer here. I asked the same thing for another client. Let me know if you need any setup help. :slight_smile:



Justin -

1 Like

I am currently in the same predicament and would be happy to work on this with anyone interested. Through this and the related question I’m now looking at the iPaaS category. I’m trying to figure out how to support user-managed OAuth2 credentials without storing any secrets in my app’s database.

The best start would be to get in touch with our sales team about the embed license which is often needed if you are using “customer” credentials in n8n before you go too far down this path. It could be that you don’t need the license but if you do then you would need to budget for that, They may also be able to share how other embed customers do it.

I know that some users have implemented Nango as a solution to get the credentials to use but I don’t have a guide on how to do that.

Thank you @Jon - it’s encouraging to hear about Nango. I discovered them separately and am investigating that option. I’ll report back with how that goes. I’ll also consider the embed option.

1 Like

Hey @hndmn,

Sounds good to me, It may be worth checking our license before you get too involved to see if you may need it as we are not “open source” so some commercial / non internal business use cases that normally involve users credentials from outside of n8n require a license.

UPDATE: Nango is looking promising here. If you use it for auth only (which is free), your users can authorize their services in your frontend via oauth, api keys or basic auth. Your app can then get and send the related tokens to n8n via webhooks. From there, you may not even need a credential as you can use the HTTP Request node and it’s expressions to dynamically query an API. Or you could query the data and then send it into n8n for processing to not transmit auth tokens. Anyways, it seems like this might be a viable service for handling the original question of this thread.

1 Like