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

Application key deleting automatically on reset password

VamsiN
8-Gravel

Application key deleting automatically on reset password

Hi,

 

   I am generating an app key using service every time when reset password requested. Currently after password reset successful generated app key is deleting automatically. How to handle this ?    

This behavior is different from running the service with in Thingworx and running service from external call to Thingworx

 

Thanks in advance

 

Vamsi

3 REPLIES 3
slangley
23-Emerald I
(To:VamsiN)

Hi @VamsiN.

 

How are you calling the service when this behavior occurs?   Please provide your code.

 

Regards.

 

--Sharon

I am calling the thingworx service from outside and creating the app key against the user.  Below code I am using to create app key.

var tokenName = 'RestPwd-' + generateGUID();
Resources["EntityServices"].CreateApplicationKey({name:tokenName ,user: userName });
var tokenValue = ApplicationKeys[tokenName].GetKeyID();

 Once Created I am just validating and performing the reset operation.

slangley
23-Emerald I
(To:VamsiN)

Hi @VamsiN.

 

We're not understanding your use case.  Why is it necessary to create a new appKey on password reset?

 

Please provide further details and we'll try to help.

 

Regards.

 

--Sharon

Announcements