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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Application key deleting automatically on reset password

VamsiN
9-Granite

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 II
(To:VamsiN)

Hi @VamsiN.

 

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

 

Regards.

 

--Sharon

VamsiN
9-Granite
(To:slangley)

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 II
(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


Top Tags