Oauth 2 with Vanta not working with Oauth2 generic credential but do with Curl

Describe the problem/error/question

I want to connect to Vanta through API as explained here : Authentication

I thought that I would Use generic OAuth2 API in N8N like this :



Note that I specified that Authentication in Body
But then I got this error

On the other end if I directly import CURL it works and give me this

based on that, why it doesn’t work through credential ? I’m not fan of having client ID and secret in clear text in the node

What is the error message (if any)?

Authorization failed - please check your credentials

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • **n8n version: 1.64.0
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Matthieu_Borrel

When using the credential in the http request node you are not overwriting any of the headers are you?

Can you also try changing the authentication from body to header and see if that helps.

I tried what you suggested by it didn’t change anything

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.