Describe the problem/error/question
I wanted to create an OAuth2 credential for Pinterest API using the generic OAuth2 API credential.
When specifying multiple scopes (separated by comma as per the documentation), the API respond with an error:
None of the given scopes are valid: "['ads:read catalogs:read user_accounts:read']"
When checking the authorization url generated by n8n, we can see that the scopes are separated by an encoded character, which turns out to be spaces (" "):
ads:read catalogs:read user_accounts:read.
Here’s what I’ve filled in the credential form:
So my question is: How can I prevent n8n to replace my comma by spaces ?
I tried to:
- Use encoded comma as separator
- Escape them
- Quote them
But none of the above did work.
Also, passing the scopes as Auth URI Query Parameters didn’t do the trick for me.
Maybe adding an option to specify the scopes separator could fix the issue ?
Thanks in advance.
Information on your n8n setup
- n8n version: 0.224.2
- Database: PostgreSQL
- Running n8n: self-hosted via Docker