Skip to main content
1-Visitor
Dec 12, 2018 8:44 AM UTC
Question

Disconnect RemoteThing from server side

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

4 replies

Support
Dec 12, 2018 9:07 PM UTC

Hi @skoessler.

 

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

 

Regards.

 

--Sharon

Translate
skoessler1-VisitorAuthor
1-Visitor
Dec 13, 2018 8:46 AM UTC

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

 

Translate
16-Pearl
Dec 13, 2018 10:57 AM UTC

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 ?

Translate