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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Connect to TWx Server from Java SDK with user credentials

drieder
15-Moonstone

Connect to TWx Server from Java SDK with user credentials

Hello everyone,

 

i am trying to establish a connection from my java Application to my TWx Server. I have been using the approach with the application key. Something like this:

 

ClientConfigurator config = new ClientConfigurator();
config.setUri(ServerUri);
config.setAppKey(MyAppKey);
config.ignoreSSLErrors(true);

 

Connection client = new ConnectionClient(config);
client.connect();

 

I would rather be able to log in with the user credentials which are assigned to an application key. Is there an easy way to do this? I have read about the Authentificators, but im not sure wether they are necessary for this (hopefully) simple scenario.

 

Thank you for your help.

 

Regards,

Dominik

2 REPLIES 2
StephenW
23-Emerald II
(To:drieder)

Not really pertaining to your question but the forum you are posting in is the communtiy feedback area about how the forum is organized. Not related to any specific PTC product.

There is a Thingworx specific area https://community.ptc.com/t5/IoT-AR/ct-p/IoTAR with sub-levels you can post in.

 

drieder
15-Moonstone
(To:StephenW)

oh, i see. Well thanks for the hint! 

Top Tags