Skip to main content
Solved

FME Server - Data Delivery


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

View original
Did this help you find an answer to your question?

3 replies

takashi
Influencer
  • 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
  • June 13, 2018
takashi wrote:

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
Influencer
  • June 13, 2018
takashi wrote:

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.

 


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