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

Disconnect RemoteThing from server side

Level 7

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

Tags (1)
4 REPLIES 4

Re: Disconnect RemoteThing from server side

Hi @skoessler.

 

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

 

Regards.

 

--Sharon

Re: Disconnect RemoteThing from server side

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

 

Re: Disconnect RemoteThing from server side

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 ?

Re: Disconnect RemoteThing from server side

Can you explain me what happens if I unbind a remote thing?

It would also help if you tell me how to do this so I can try if the client is still authenticated afterwards.

 

Cheers,

Sebastian