Is there a way to use OAuth2 authentication with JSON body format?

Describe the problem/error/question

I have used OAuth2 before without problem, but the API system I’m now trying to use (Pax8) seems to require the token request to be done with a JSON body, not form post format. But I don’t see any options in n8n (at n8n.cloud) to tell the system to do that. I guess I can do a manual request and adjust all my calls to use the token, but that seems pretty ugly. Am I missing something?

What is the error message (if any)?

Unsupported content type: application/problem+json

Please share your workflow

(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.84.3
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n.cloud
  • Operating system:

Hello !

You can send headers and body in the http request, I’m guessing it’s what you meant :

Hope this was it and that it helps ! :slight_smile:

Yeah, I can do the Oauth work myself, but I am hoping there might be a way to have n8n handle this case. Seems like it could be useful in other cases since there does seem to be an RFC for using JSON during the authentication phase, but maybe this didn’t really go anywhere?

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