Choose a login wall
n8n has its own accounts, but its login page is on the internet like the rest of the editor. A login wall is a second door in front of the editor: before a visitor can even load the page, the network layer asks them to sign in, or checks where they come from. Webhook paths bypass the wall, because outside services call them without a person to sign in.
This guide helps you choose among four modes of auth.mode. You need to know whether your ingress is CloudFront or a load balancer (an ALB), which the concepts page explains.
The short answer
The four modes
| Mode | Works with | How it works | Cost |
|---|---|---|---|
ip-allowlist | ALB or CloudFront | On an ALB, a security group admits only ingress.allowed_cidrs. On CloudFront, a web ACL blocks other addresses except on the public paths | The ALB path is free. A web ACL costs $5 a month plus rules |
alb-cognito | ALB | The load balancer sends visitors to Amazon Cognito and forwards only signed-in requests. No Lambda function | Cognito is free up to 10,000 monthly active users |
alb-oidc | ALB | The same, with any OpenID Connect provider | The ALB only |
cloudfront-cognito | CloudFront | A Lambda@Edge function checks the sign-in on editor requests only. It needs a domain of yours | About $0.60 per million editor requests, plus duration (F7) |
With none, only n8n's own login protects the editor. n8n's single sign-on (auth.n8n_sso) is a different feature: it replaces n8n's login page for a paid edition, and it can run on top of a wall.
Examples
A user pool that the tool creates, for a deployment behind CloudFront:
auth:
mode: cloudfront-cognito
cognito:
kind: create
mfa: optional
invite: [me@example.com]invite creates the users when you deploy, and Cognito emails each one a temporary password. The nano and small-team samples use this.
An identity provider that you already run, behind an ALB:
auth:
mode: alb-oidc
oidc:
issuer: https://login.microsoftonline.com/<tenant>/v2.0
authorization_endpoint: https://login.microsoftonline.com/<tenant>/oauth2/v2.0/authorize
token_endpoint: https://login.microsoftonline.com/<tenant>/oauth2/v2.0/token
user_info_endpoint: https://graph.microsoft.com/oidc/userinfo
client_id: <application id>
client_secret: {secret: n8n/entra-client-secret}The queue-workers sample is a complete file.
Which paths stay open
Production webhooks, forms, waiting webhooks, the MCP server and the health check bypass the wall. The list is in the deployment options note. Add your own paths with auth.public_paths. The editor, /rest/*, test webhooks and /metrics stay protected, and /metrics answers 404.
What the rules check
cloudfront-cognitoneedsingress.kind: cloudfrontand a domain (T7).alb-oidcneeds anoidcblock, andip-allowlistneedsallowed_cidrsnarrower than0.0.0.0/0(T6).- A wall on an ALB needs HTTPS: a domain and a certificate.
For an existing Cognito pool, the app client needs no secret and https://<domain>/_auth/callback as callback for cloudfront-cognito, and a secret and https://<domain>/oauth2/idpresponse for alb-cognito (finding C3).