Capula's OSISoft Pi to PTC Thingworx Connector
Creating a PTC Thingworx Application Key
Application Keys
Application keys are security tokens that can be used to log on to the ThingWorx application instead of using standard credentials. You can pass an application key in the URL of a request by adding the following query parameter:
appKey=1CB45438-0000-0000-B95C-892762FD0000
The request is run using the security context of the user associated with the application key. By default, a session is not created when a request is made using an application key. This is the recommended way for other systems and applications to make a request to the ThingWorx application. However, if you want to create a session, you can use the following query parameter in addition to passing in the application key: x-thingworx-session=true
.
When viewing a mashup via a URL and using an application key, you should create a session by adding x-thingworx-session=true
. Without a session, subsequent requests require authentication using the standard HTTP basic authenticator.
Creating an Application Key
Follow the steps below to create an application key. The created key will assume the security settings granted to the associated user in the User Name Reference field.
In ThingWorx Composer, select Application Keys
Select New
Type a Name and any optional details
In the User Name Reference field, select the user associated with the application key
Click Save
The Application Key displays in the keyId field.
Capula © 2020