Skip to main content
1-Visitor
December 12, 2018
Question

Disconnect RemoteThing from server side

  • December 12, 2018
  • 1 reply
  • 2288 views

Hi all,

 

in our current project we are using a custom authenticator to leverage 3rd party security solution.

Therefore we need to implement device session handling.

Can anybody point me in a direction how to disconnect a RemoteThing from Thingworx server side?

 

Cheers,

 

Sebastian

1 reply

Support
December 12, 2018

Hi @skoessler.

 

Can you provide more information on your use case?  I'm not understanding why you would need to do this.

 

Regards.

 

--Sharon

skoessler1-VisitorAuthor
1-Visitor
December 13, 2018

The goal is to rotate the authtoken which the client uses to authenticate.

If the client cannot provide a valid authtoken we need to terminate the current websocket connection.

Otherwise if we do not terminate the connection the client could be sending data even if it does not have a valid authtoken.

 

I am not sure how this works with appkeys.

But from my understanding open client connections should be terminated if the validity of the appkey expires.

Therefor such functionality should exist on the thingworx platform.

 

Cheers,

 

Sebastian

 

16-Pearl
December 13, 2018

Is it ok to just "unbind" the RemoteThing from the server side ? or do you want to completely close the websocket connection with the edge ?