cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

How to get oAuth token in Thingworx 8.0?

imshaikh
5-Regular Member

How to get oAuth token in Thingworx 8.0?

I am currently using Thingworx 8.0 and Navigate framework 1.5

Scenario is,

1. I have configured Thingworx with SSO using PingFederate as Authentication server and Windchill-ds as directory server.

2. We are using WQS (Windchill Quality Solutions) is dot net based application as a resource provider which is also SSO configured.

2. I have successfully logged in to Thingworx using SSO.

3. Our existing architecture is able to call dot net based web api using Soap request, but its giving bad response error.

      for e.g. Here we are using http:\\localhost\PTCWindchillQualitySolutions11.0\DataEngine.asmx url in Soap request to call WQS api's.

      But as 'http:\\localhost\PTCWindchillQualitySolutions11.0\' this path is configured in Shibboleth for SSO configuration then I guess its trying to login using SSO when we send Soap request

      to above url and since it do not find any token its giving bad response error.

For resolving this issue I need to get oAuth token and then I will try to pass that in Soap request so that my api gets called correctly.

So here I need some api or something similar to find oAuth token at Thingworx side.

3 REPLIES 3
imshaikh
5-Regular Member
(To:imshaikh)

Got the way to retrieve oAuth token using MediaEntity.

dupatel
19-Tanzanite
(To:imshaikh)

Imran Shaikh

Thank you Imran for updating the thread. Also, suggest you to mark correct answer or assumed answer so that everyone knows thread is closed and has resolution.

-Durgesh

kr1
3-Visitor
3-Visitor
(To:imshaikh)

I am trying to achieve the same. Can you explain more on what you did @imshaikh

Top Tags