Skip to main content
5-Regular Member
August 6, 2020
Question

OAuth 2.0 using Thingworx Content Loader Services

  • August 6, 2020
  • 1 reply
  • 1381 views
This is related to consumption of external REST APIs from Thingworx. I am trying to use Content Loader Services for this. The problem is that external system uses OAuth 2.0 instead of basic authentication. So that means to consume any API we need to pass bearer token instead of Username password to get response each time. And to generate the Beaer token there is Auth API, but to consume that we need to pass username and password externally( login page comes up). I just wanted to understand if there is a way in Thingworx we can achieve this. Or any other examples you guys have tried accomplishing OAuth 2.0 mechanism.

1 reply

1-Visitor
August 6, 2020

Checkout PTC Flow:

"

ThingWorx Flow is what you are looking for. 

Configuring & loading OAuth in ThingWorx Flow

"

This is how it is best practice to implement it.

I have a similar issue but currently looking for a way implementing it without using PTC Flow check my question here: https://community.ptc.com/t5/ThingWorx-Developers/ThingWorx-Platform-Connection-to-Saleforce-Endpoint-with-OAuth-2/m-p/681085#M47083