Can't authorise OAuth2 API credentials

Describe the problem/error/question

I’m trying to set up credentials using the generic OAuth2 API type. When I try to authorize the app, I go through the login process and approval but when the callback page is loaded, it shows a 401 error saying:

“The provided client id and secret do not match an existing application”

What is the error message (if any)?

“The provided client id and secret do not match an existing application”

Please share your workflow

  • I added OAuth2 API credentials.
  • I entered all the relevant fields (auth urls, client id, client secret, etc.)
  • Tried to authorize
  • Authorized the app
  • Callback page loads
  • 401 error is displayed
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.20
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker through caprover
  • Operating system: Ubuntu

Hey @vlad,

It looks like the app you are trying to connect to is returning a message to say the id and secret don’t match what it is expected. What are you trying to authenticate against?

@Jon, thanks for your reply. The app is Jobber. But my coworker helped me figure it out. It didn’t register to me that the Authentication field needed to be changed to Body. I didn’t think about that. I just thought it was set to header because it was talking about where the bearer token would be used.

1 Like

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