Question

Getting token for FME Cloud datadownload service

  • 21 September 2017
  • 6 replies
  • 12 views

Badge

hi, I'm attempting to set up this example using my fme cloud instance (to later modify) https://knowledge.safe.com/articles/1117/data-distribution-with-web-maps.html. I'm stuck at the part where it talks about the token.

  1. dataDist.init({
  2. server: "http://fmeserverurl",
  3. token: "a1b2c3d4e5f6a1b2c3d4e5f6" });

How do I generate the token in FME cloud?


6 replies

Badge +9
@johnglick

Just after the hostname type /fmerest/

eg http://myfmecloud.com/fmerest and you can click the Get Token button up in the corner. From here you can lookup the exisiting token or generate a new token with expiry limit

Badge +5
@johnglick

Just after the hostname type /fmerest/

eg http://myfmecloud.com/fmerest and you can click the Get Token button up in the corner. From here you can lookup the exisiting token or generate a new token with expiry limit

You can also manage your token from inside the normal FME Server web app. Once you have logged in, go to the user drop-down in the top right and select "Manage Token".

 

 

Badge +9
@johnglick

Just after the hostname type /fmerest/

eg http://myfmecloud.com/fmerest and you can click the Get Token button up in the corner. From here you can lookup the exisiting token or generate a new token with expiry limit

Just watch out using token from here as I found it expires very frequently and then you need to replace it often.

 

 

Badge

Hi @johnglick,

an additional option to the ones suggested by @ciarab & @stewartharper is the FME Token Service:

https://docs.safe.com/fme/html/FME_Server_Documentation/Content/ReferenceManual/service_token.htm

This service allows you to request FME Server tokens, either via your browser or within an application via a POST request, sent to the token service, specifying the credentials and the desired token expiration time.

Badge

Hi @johnglick,

an additional option to the ones suggested by @ciarab & @stewartharper is the FME Token Service:

https://docs.safe.com/fme/html/FME_Server_Documentation/Content/ReferenceManual/service_token.htm

This service allows you to request FME Server tokens, either via your browser or within an application via a POST request, sent to the token service, specifying the credentials and the desired token expiration time.

Thanks! I needed to find out how to do it in my application, that's perfect.
Badge
@johnglick

Just after the hostname type /fmerest/

eg http://myfmecloud.com/fmerest and you can click the Get Token button up in the corner. From here you can lookup the exisiting token or generate a new token with expiry limit

 

good to know, thanks!

Reply