The app_id added to the URI parameters option worked for the confirmation of the app connecting to the API, but after that, i got a message Invalid app_id.
I am not sure if it needs anything in the scope field that would depend on what you are connecting to. It looks like the other end doesn’t like the app id though either that or there is something else odd going on.
I noticed that the link that showed the {“code”:0,“message”:“The OAuth2 callback state is invalid!”,“hint”:“”} has unchanged State at the end.
In the instruction how to get Access_token code to call API, it mentions that I need to set u Code Challenge and State, which I don’t know how and there is no option to input that into N8n, to get the code.
Do I have to deal with Code Challenge and State to get the Access Token?3
I have found the issue, the API doc mentions that they use PKCE which we currently don’t support but it is on a list of things that @RicardoE105 is looking into.
For now you might have to manually build out the authentication flow using http request and webhook nodes which isn’t ideal.
Thanks @Jon I’m able to connect the webhook to the API, but not the HTTP request node.
That’s what I thought about the API. I have called HTTP request successfully many times on many nodes/apps, but not on this one. This API looks weird to me tbh.
Thanks again @Jon I appreciate it very much. Let me try to build up HTTP request for this one then.
Yeah, this has been on my To-do forever. I got it working here, but sadly we needed to fork the npm package that we use to handle the oAuth2 flow, and that does not feel right. When I have the time to remove the library, we will be able to add proper support for PKCE without making compromises.
No, I am not. According @RicardoE105 comment, unless there is an update on the process, I don’t think we can set up HTTP request for the API atm. @huuich