Question

Inheriting Credentials to use with FMEServerJobSubmitter

  • 14 March 2018
  • 1 reply
  • 2 views

Hello

I have a workbench which is launched from FME server by an end user, let's call it Workbench_A.

This workbench has an FMEServerJobSubmitter to call another workbench, Workbench_B.

Is it possible to somehow have the FMEServerJobSubmitter in Workbench_A inherit the credentials that were used to call Workbench_A, for using when calling the subjob Workbench_B?

I know of the FME Server parameter FME_SECURITY_USER, but I do not know of any password parameter. My alternatives are

1) hardcode a username and password on the FMEServerJobSubmitter, and

2) add Published Parameters to Workbench_A to have the end user provide their fme server credentials for use in the FMEServerJobSubmitter

Both of these are undesirable as option 1 has the usual issues surrounding hardcoding credentials anywhere, and option 2 could be confusing to the end user.


1 reply

Userlevel 6
Badge +32

Why not use the api to start a workspace with a httpcaller. Generate a token with credentials in workspace a, start workspace b with token. Storing credentials not needed.

See also this topic. Let me know if you need more help.

Reply