OAuth2 Invalid Request

Hey everyone,

i’m currently deploying n8n in our company and trying to create my first workflows. One of our used Apps is using OAuth2 for authorization. Everything works fine, but n8n throws an error when the callback is issued.

{"error":"invalid_request","error_description":"Field client_id must be defined"}

I’m using Authorizatiion Code as a Grant Type, so i’m confused why there needs to be a client_id in the callback. Per definition only code and state is required for this type of callback and this is exactly what i get. So why does n8n tell me a client_id must be defined?

our n8n setup

  • n8n version: 2.0.3
  • Database (default: SQLite): SQLite
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Raspberry Pi OS

@kreuzundquer Check and update your OAuth2 API credential, if that doesn’t work, you should review all your credential fields.

If you’re still stuck, could you let me know which specific app or service you’re trying to connect to?

Credentials are triple checked and correct, otherwise i wouldn’t get a callback at all.

The Service i’m trying to connect to is called Crewbrain.

It seems that the cliend_id is missing or incorrectly written.

client_id does not get send back by the service on authorization. i just want to know if there is a way to configure n8n in a way, so it doesn’t need the id on callback?