Use expression in order to make an Auth for Webhook

Describe the issue/error/question

I just realize that we can use “expression” on the creation of an Auth (Basic & co).
I asked myself, why is that possible for webhook ?
How can we use it ?

Not sure the rest is relevant…

Thanks for your light !

Please share the workflow

Share the output returned by the last node


Information on your n8n setup

  • 0.169.0
  • SQLite
  • own
  • Docker

Hi @Florian_Guillemard, trigger nodes would be the first node to run in any workflow so unfortunately your expressions wouldn’t have any node to fetch data from.

You could, however, implement the authentication as part of your workflow rather than through credentials. For example, when sending an authorization header to your webhook URL, you could look up the header value in a database and depending on the result, respond with an error message or proceed using your workflow.

1 Like

Thanks for your response @MutedJam

I understand for the Webhook node, it just seemed weird at the moment !