Forum Discussion

Florent's avatar
Florent
Ideator I
5 years ago

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

6 Replies

  • 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. 

    • Florent's avatar
      Florent
      Ideator I

      Hello Angela,

      Thanks for your answer.

      I have already try to increase each value of oauth.config on vault and oauth server but nothing seems to work ...

      We are using version 12sp11.

      Florent

      • AngelaIp's avatar
        AngelaIp
        Ideator I

        There are other files inside Vault and Oauth that may contain some timings, but I am not sure if they are really the correct one.

        This one seems to specify the general time out for the Innovator client:

        ..\Client\Modules\aras.innovator.AuthenticationFramework\Scripts\OAuthClient.AuthorizationCodeGrant.js