Developer forum

Forum » Integration » Integration token changes when site is hosted in Azure

Integration token changes when site is hosted in Azure

Espen Strømsnes
Espen Strømsnes
Reply

We have a couple of DW 9 sites hosted in Azure with various integration jobs.

Each job is trigged by an external integration process. The problem is that the token generated by DW that is appended to the url changes, making it unable to trigger integration jobs from the external process without updating the url. When trying to trigger an integration job with the wrong token I get the following message: "Token missing, activities canceled".

Why does the token change?
Is there anything I can do to prevent this, to ensure that the integration job can be triggered wihout needing to modify the url to call?

Here's an example of where the token has changed:

Url generated by url builder: https://xx/admin/public/webservices/integrationv2/JobRunner.aspx?jobsToRun=R5K+-+VariantOptions+-+Color+import&token=33f790895f88adf5b7e814ee4b5b6130

Url generated by url builder a couple of days later (same integration job on the same DW installation):
https://xx/admin/public/webservices/integrationv2/JobRunner.aspx?jobsToRun=R5K+-+VariantOptions+-+Color+import&token=a2bb40d46464947986b512684764e8b0

 

 


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Espen,
the token is changed when one of the following properties was changed:
- computer domain
- computer name
- "Files" folder physical location was changed
Otherwise if none of that was changed the token value should be the same.
Regards, Dmitrij

Votes for this answer: 1
 
Espen Strømsnes
Espen Strømsnes
Reply

We have another customer that has DW9 hosted in an Azure App Service, where this just happened.

The token changed this morning causing all integrations to fail. There hasn't been made any changes (by us) regarding computer domain, computer name, files-folder, etc on the Azure app service.

What do you mean by "physical location was changed"? Can it be that Azure internally has done something to the file system causing this change in the token?

The main question is how do we ensure that the integration jobs can be triggered by an external process without the need for "manual intervention" (i.e. manual update of token in external config)?

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Espen,
have you followed the steps described here:
https://doc.dynamicweb.com/get-started/introduction/installation/deploying-to-microsoft-azure
and configured virtual directories correct?
What are your solutions urls?
Regards, Dmitrij

 
Espen Strømsnes
Espen Strømsnes
Reply

I'm pretty sure we have followed the steps described.

We have Files and Admin as a separate virtual folders to make it easy to upgrade Dynamicweb. See attached screenshot.

Espen

dw.png
 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Espen,
this is a bug, thank you for finding. New TFS# 48880 was created.
Regards, Dmitrij

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Espen

The problem regarding #48880 "Fix Data integration job token validation in Azure" has now been resolved in Dynamicweb version 9.4.10

To upgrade please choose this version from download:

http://doc.dynamicweb.com/releases-and-downloads/releases

Let me know if you need any more help regarding this

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum