OpenAPI connection

@2WeltenChris

I'm working on connecting up to a Swagger API from SensorPush (Documentation: Gateway Cloud API — SensorPush). I'm having some troubles figuring out how to do the Authentication and Authorization Process prior to pulling in data from the API. None of the examples that I can find show that authentication process. Any advice on how to set things up in this scenario?

Hi @ryanprel

Given this API seems to be using OAuth2, my goto is the OAuth2 Node.

Steps.

  • Use The OAuth2 node to grab a token (requires the URI, Username, Password, Intent)
  • Use the returned token in subsequent calls to the API (Dedicated Nodes, HTTP Node etc etc)

The OAuth2 node works really well.

Hi @ryanprel,

as I have no account for that API this is theoretical, but should work like this:

Get your token by using this operation with your email and password.

EDIT: You will receive an token which must be used with the AcessToken Api.


The token received should be put into into your header -> you can use the new custom header function in the "advanced tab". Like the image below.

Be aware: Saving the email/password/token as a string means it will be saved in your flow.json. I recommend using env variables for your login (email and password) and saving the token temporarily into the flow or global context.

PS: This operation should get you the access token directly

Sorry - wasn't online in the forum for some time. Did you manage to fix your problem? If not, feel free to open a ticket in gitlab.