N8n self-hosted community version Login Automation

I am looking to Automate n8n login after the user is registered for the first time in self-hosted community version

What is the error message (if any)?

No Error

I have successfully deployed the n8n community version. We are integrating n8n into our application and we want user to directly open n8n without any login. However we see n8n always asks for a login.

We would like to know what is the way we can bypass/automate the login after the first user setup is completed.

Please share your workflow

Not a workflow-related issue/concern

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.109.2
  • Database (default: SQLite): PostgreSQL
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): systemd service file
  • Operating system: Ubuntu 20.04

Authentication | n8n Docs seems that a cURL request can do that.

Thanks for the response about cURL command. I see it is for the API calls. How can we login to browser/UI using cURL request. Could you help me with it?

To make login automatic for n8n’s self-hosted community version upon initial setup, define these environment variables in your n8n configuration:

bash
N8N_BASIC_AUTH_ACTIVE=false
N8N_AUTH_COOKIE_SECURE=false
This turns off the login form and makes direct access possible. Important: Use this only on trusted internal networks since it disables all authentication.

If this answer helps, please mark it as a solution.
thankyou

1 Like

Can you please link the document about this environment variable? Ask your AI assistant which version this is valid for :slight_smile:

2 Likes

You’re posting AI generated hallucinations; these options do not exist. I’ve removed you from our Answer & Earn program - you can no longer participate.

2 Likes