Skip to main content
Question

How I can retrieve the CURRENT TOKEN via REST ?


How I can retrieve the CURRENT TOKEN via REST ?

4 replies

patrick_koning
Contributor
Forum|alt.badge.img+1

Something like this i believe.

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

see also

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


patrick_koning wrote:

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,


david_r
Celebrity
  • April 21, 2016

Hi

can use the lookupToken() method:

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

See also the documentation here.

David


patrick_koning
Contributor
Forum|alt.badge.img+1
simonstefan wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings