Skip to main content
Question

Getting token for FME Cloud datadownload service

  • September 21, 2017
  • 6 replies
  • 19 views

johnglick
Contributor
Forum|alt.badge.img+1

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

ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • September 21, 2017
@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


stewartatsafe
Safer
Forum|alt.badge.img+5
ciarab wrote:
@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".

 

 


ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • September 21, 2017
ciarab wrote:
@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.

 

 


Forum|alt.badge.img

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.


johnglick
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • October 2, 2017
gerhardatsafe wrote:

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.

johnglick
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • October 2, 2017
ciarab wrote:
@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


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