How to use FME Jobsubmitter with one token without username and password ? thx
I don't think that's possible. You will probably have to use the transformations/commands/submit/<repository>/<workspace> API instead, e.g. using the HTTPCaller. The token is then sent in the http request header:
See also the documentation: https://docs.safe.com/fme/html/FME_REST/v2/apidoc/
FME desktop calls /fmerest/v2/info so i tried to add a token in the url but it doesn't work :(
Here's an example on how to submit a workspace to FME Server using the HTTPCaller, I've highlighted the important bits:
The upload body looks like this (see the API doc for details):
{
  "FMEDirectives": {},
  "NMDirectives": {
    "failureTopics": i],
    "successTopics": e]
  },
  "TMDirectives": {
    "rtc": false,
    "description": "",
    "priority": 100,
    "tag": ""
  },
  "publishedParameters": Â
  ],
  "subsection": "REST_SERVICE"
}
The response will be a JSON block with a job id, e.g.
{"id":6}
Here's an example on how to submit a workspace to FME Server using the HTTPCaller, I've highlighted the important bits:
The upload body looks like this (see the API doc for details):
{
  "FMEDirectives": {},
  "NMDirectives": {
    "failureTopics": i],
    "successTopics": e]
  },
  "TMDirectives": {
    "rtc": false,
    "description": "",
    "priority": 100,
    "tag": ""
  },
  "publishedParameters": Â
  ],
  "subsection": "REST_SERVICE"
}
The response will be a JSON block with a job id, e.g.
{"id":6}
Â
But it's not an issue for me to launch a workspace with a token.Â
I would like to use the FME Job Submitter with a Token without Username and Password. I don't want to show to the developers the credentials connection. I just want to expose a token with this transformer.Â
Â
Â
But it's not an issue for me to launch a workspace with a token.Â
I would like to use the FME Job Submitter with a Token without Username and Password. I don't want to show to the developers the credentials connection. I just want to expose a token with this transformer.Â
Â
Â
You can easily convert the token to a published parameter using the above method, however.Â
Â
But it's not an issue for me to launch a workspace with a token.Â
I would like to use the FME Job Submitter with a Token without Username and Password. I don't want to show to the developers the credentials connection. I just want to expose a token with this transformer.Â
Â
Â
It's very easy to decrypt the password with FMEÂ
Â
Â
It's very easy to decrypt the password with FMEÂ
Â
Â
If security is essential to you, you should of course not rely on that.Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
http://FMESERVER/fmerest/v2/info?token=blablablablaÂ
Â
Here's an example on how to submit a workspace to FME Server using the HTTPCaller, I've highlighted the important bits:
The upload body looks like this (see the API doc for details):
{
  "FMEDirectives": {},
  "NMDirectives": {
    "failureTopics": i],
    "successTopics": e]
  },
  "TMDirectives": {
    "rtc": false,
    "description": "",
    "priority": 100,
    "tag": ""
  },
  "publishedParameters": Â
  ],
  "subsection": "REST_SERVICE"
}
The response will be a JSON block with a job id, e.g.
{"id":6}
Â
Another option you could do here is wrapping up the HTTPCaller into a custom transformer, that way it would be repeatable and users wouldn't have to see and edit a HTTPCaller every time. That would also allow you to control which parameters a user can enter (such as token). @david_r is correct that currently you can only authorise with username/password.ÂÂ
You could always suggest this to the ideas exchange, for an updated/optional authorisation option within the FMESJS.