Can I enable users to connect their Google or Slack accounts via OAuth through my custom UI without exposing n8n directly

I’m self-hosting n8n and want to build a custom frontend (UI) for a specific workflow. Users should be able to log in via Google or Slack (OAuth), and their tokens should be used to create credentials inside n8n (not through n8n UI). Then I want to trigger workflows using those credentials, all without exposing n8n to users. Is this possible? What’s the best way to approach OAuth-based multi-user credential creation from an external frontend into n8n?

Information on your n8n setup

  • ** 1.99.1**
  • docker and self hosting
  • intel core i 5