Question

How I can retrieve the CURRENT TOKEN via REST ?

  • 19 April 2016
  • 4 replies
  • 10 views

How I can retrieve the CURRENT TOKEN via REST ?

4 replies

Something like this i believe.

FMEserver.generateToken( user, password, count, unit, callback) ,return String

see also

http://playground.fmeserver.com/getting-started/au...

Something like this i believe.

FMEserver.generateToken( user, password, count, unit, callback) ,return String

see also

http://playground.fmeserver.com/getting-started/au...

Hi,

Thank you for your answer.

What I need is to get the current token, not to generate a new one and use in other applications configuration files, applications which will use the token to deal with the FME server.

It is possible to find a workaround but it is much simpler for Jenkins to get the current token from the FME server and automatically configure and deploy the rest of applications.

If I generate a new token, other machines will be able to use the old token?

Thanks,

Userlevel 5

Hi

can use the lookupToken() method:

FMEServer.lookupToken( user, password, callback ) , return Object

See also the documentation here.

David

Hi,

Thank you for your answer.

What I need is to get the current token, not to generate a new one and use in other applications configuration files, applications which will use the token to deal with the FME server.

It is possible to find a workaround but it is much simpler for Jenkins to get the current token from the FME server and automatically configure and deploy the rest of applications.

If I generate a new token, other machines will be able to use the old token?

Thanks,

@simonstefan When a token for that user is already given out and still active you will be given back the same token. So it schould be the current one for that user.

Reply