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": [],
"successTopics": []
},
"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": [],
"successTopics": []
},
"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": [],
"successTopics": []
},
"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.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.