How to increase getFileURL token lifetime

Hello,

I am currently writing a server method which will provides some data including file urls to our MES.

To get file url I'm using the method innovator.getFileUrl(fileInfo.FileId, UrlType.SecurityToken)) that returns something like vaultAddress/vaultserver.aspx.

The problem that we are currently facing is that the link bellow is valid only 2 minutes, so if the MES operator doesn't click on the 2 minutes, the file won't be downloadable.

So I was wondering if we can increase the lifetime of the token and how can we do it ?

Regards 

Florent

Parents
  • Hi Florent,

    which Innovator version are you using? I don´t know the exact solution, but the various  oauth.config files in the codetree allow you to specify a "tokenLifetime" and "duration". The typical value is 300, not sure if this matches your 2 minutes.

    I would try to change VaultServer/oauth.config . But I am not sure if this one is really the correct file for this change. 

Reply
  • Hi Florent,

    which Innovator version are you using? I don´t know the exact solution, but the various  oauth.config files in the codetree allow you to specify a "tokenLifetime" and "duration". The typical value is 300, not sure if this matches your 2 minutes.

    I would try to change VaultServer/oauth.config . But I am not sure if this one is really the correct file for this change. 

Children