N8n form trigger authentication

When creating a chat trigger i it possible to add authentication if needed. But as far as i can see there is no possibility to add authentication to a n8n from trigger, right?

Is there a workaround by adding username/password fields and check the authentication in the workflow?

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:

Something like this?

Thanks. This is a simple approach i already considered. With the chat node i can select to authenticate against the n8n users or a predefined entry in the credential store.
Is it possible to access secrets from the credential store inside a workflow? I think that would reveal the credentials. So we can perhaps call the n8n api to make use of it?

Hey @MehrCurry,

It is not possible to use the credential store in a workflow that I can think of in a way that you could use it for authentication but I do really like the idea of adding authentication to the form trigger. If you were to store the credentials in a database though you could compare the hash of the password field, One thing I do in my forms that I want to protect a bit is use the OTP option and use the TOTP node to validate the token on submission then use the form from a wait node as the form I want to show the user. The workflow below shows an example on how you could do this.

Thanks, Jon. Having the same kind of Authentication in the form trigger as in the chat trigger would be really great.
This time we went with Google forms. Since we need some more functionality (prefill options with values from a Google Sheet) we took this approach.

1 Like