Skip to main content
How I can retrieve the CURRENT TOKEN via REST ?

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,


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