Hi Community,
I’m looking for a solution to authenticate an HTTP request using OAuth 1.0 Two-Legged in n8n, following the documentation here:
ImmobilienScout24 Two-Legged OAuth Guide
Since n8n only provides built-in support for OAuth 1.0 Three-Legged, I need to manually generate the required authentication headers.
What I Need
I need help setting up an HTTP Request node in n8n that includes the correct OAuth 1.0 signature. Specifically, I need to:
- Generate the OAuth 1.0 signature using HMAC-SHA1.
- Include the required parameters:
oauth_consumer_key
oauth_nonce
oauth_signature_method
(HMAC-SHA1
)oauth_timestamp
oauth_version
(1.0
)oauth_signature
- Format the request correctly so that the API accepts it.
What I Have Tried
I attempted to use a Code node (JavaScript) to generate the signature and pass it as a header in the HTTP Request node, but I’m not sure if I’m constructing it correctly.
Has anyone successfully implemented OAuth 1.0 Two-Legged authentication in n8n?
Would love to see examples or best practices for this!
Thanks in advance!
Information on your n8n setup
- n8n version: 1.72.1
- Running n8n via: npm
- Operating system: Raspian (bullseye)/Linux 11