Skip to main content

Hello,

I am a newbie and want to use fmedownload api in our new webpage.

what is the best way to integrate security?

at the moment I would call the the get token service with user and password to get a temporary token.

Then I would use this token and call fmedownload.

Is that the best way? Will the token service be available in the future?

thanks

best regards Gerhard

Hey Gerhard,

Have you had a chance to check out webhooks in FME Flow?

You can find more info here: Working with FME and Webhooks

It might be helpful to create a webhook through the FME Flow web UI. This will generate a dedicated token with limited permissions to run your workspace.


A web side wants to use my fme Flow with api and JavaScript. What is the best and secure way to do this?

I am looking for some javascript examples.

best regards Gerhard


Hi Gerhard,

You’re on the right track! Important to note that by default, the token will expire within 1 hour unless configured otherwise. There’s a popular article that covers tokens / auth in detail here: Authorization in the FME Server REST API | Token Management

I’d also recommend exploring the article shared by ​@alexbiz - this sounds like it would be a great situation for implementing a webhook!


Reply