Using OAuth2 Authenticator

Hello! I am trying to use the OAuth2 Authenticator node to connect to NetSuite. We have filled in all the required inputs for the node including the redirect URL. We are able to authenticate and get to this screen:

We click continue and arrive at this screen:

The node then times out and doesn’t seem to get the credential from the redirect URL.

We are using the same redirect URL in the node as in NetSuite.

Any help is appreciated :slight_smile:

1 Like

Hello @GG85 ,
can you please change the redirect URL in the node dialog to http://localhost:10000 not https.
Thanks
Tobias

1 Like

Hi Tobias, thank you for your response.

I made that update in the node and also in the NS configuration. When executing the node I am taken to the following in browser:

Then back in the node I get this error:

Thank you for looking at this.

Hey @tobias.koetter ,

I am trying a similar thing for an app we subscribe to. It looks like the authentication window comes up correctly and passes me the API key, but from there KNIME is not able to read the key.

I have set up similar to Postman…

…but when I press Login I am getting a 401 error, even though it appears that it is returning a key (from the popup window)…
image

Is there a step I am missing?

Any help getting API data would be greatly appreciated and would help us build our use cases for KNIME Server. :slight_smile:

Hi,
Generally, the code KNIME receives (in your case successfully), is exchanged for an authorization token by making another request to a token endpoint. This endpoint is returning the 401 Unauthorized error. I would suggest two things:

  • check the KNIME log (knime.log) to see if there is any hint what the server returns apart from the status code
  • check your OAuth provider’s logs to see why it returned a 401 instead of the access token

Kind regards,
Alexander

PS: As you were mentioning KNIME Server: unfortunately the node does not work on KNIME Business Hub or Server yet:

Note: Currently, the node can only be used in KNIME Analytics Platform. The node does not support execution on KNIME (Business) Hub or KNIME Server, also not via Remote Workflow Editor.

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