Auth0 OAuth2 Client Credentials does not work

Describe the problem/error/question

I can’t figure out how to connect n8n with out auth0 app.
Auth0 expects the request to be in this format:

curl --request POST \
  --url 'https://predium-staging.eu.auth0.com/oauth/token' \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials \
  --data client_id=YOUR_CLIENT_ID \
  --data client_secret=YOUR_CLIENT_SECRET \
  --data audience=YOUR_API_IDENTIFIER

however for the sake of it i could not make n8n send a request of that schema. I only have the possibility to set “scope” in the OAuth 2 API credential setup screen which results in a body param of the form:

scope=audience%3Ahttps%3A%2F%2F<our_site>.eu.auth0.com%2Fapi%2Fv2%2F&

but i need audience=…

Has anybody successfully connected n8n with a auth0 m2m app? (not management api)
I feel like this is due to limited customizability of the credentials?

Thanks for any help!!

What is the error message (if any)?

varying but mostly: Unable to sign without access token

Information on your n8n setup

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

Hey @neon

We only support the management api at the moment rather than the authentication api. Are you trying to authenticate users with an app that sits behind auth0?

The best option at the moment would be to use an http request node to handle the auth because of the uncommon audience option in the request. One thing we could possibly try is allowing the authURI query params for all 3 oauth types which you let you manually set it.

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