Skip to main content
Solved

FME Server - Data Delivery

  • June 13, 2018
  • 3 replies
  • 21 views

Forum|alt.badge.img

Hi,

I have setup a really nice example of the data delivery on FME server using this example code - https://knowledge.safe.com/articles/1117/data-distribution-with-web-maps.html. Ihave also made the guest account token the init for the FME javascript.

I have setup a simple form to authenticate in the example the user using the token service however struggling to replace the init token with the users token when the FMEServer.runDataDownload method runs.

Any attempt to overwrite the variable token resorts to running the job under the guest account.

Any suggestions?

Thanks

Best answer by takashi

Hi @fme_it, if you are looking for a way to generate a new token from username and password which are entered via the form on a web page, the description and example in this page might help you.

Authentication and Authorization | FME Server Playground

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

takashi
Celebrity
  • 7843 replies
  • Best Answer
  • June 13, 2018

Hi @fme_it, if you are looking for a way to generate a new token from username and password which are entered via the form on a web page, the description and example in this page might help you.

Authentication and Authorization | FME Server Playground


Forum|alt.badge.img
  • Author
  • 4 replies
  • June 13, 2018

Hi @fme_it, if you are looking for a way to generate a new token from username and password which are entered via the form on a web page, the description and example in this page might help you.

Authentication and Authorization | FME Server Playground

Hi @takashi I have successfully done that and replaced the 'token' var in code with the new token but somehow it looks like the FMEServer.runDataDownload only remembers the init token for the JS and not the authenticated user.

 


takashi
Celebrity
  • 7843 replies
  • June 13, 2018

Hi @fme_it, if you are looking for a way to generate a new token from username and password which are entered via the form on a web page, the description and example in this page might help you.

Authentication and Authorization | FME Server Playground

You have to generate a new token at very first then call the FMEServer.init method using the new token.