Skip to main content
Solved

How to generate Token in FME Server 2016

  • December 8, 2017
  • 3 replies
  • 50 views

Forum|alt.badge.img

Hi there,

I can generate Token from FME Server2017 using C#, tested with postman, see attached image, but when I try to use same method from FME Server2016, it gives me error: Both user ID and password need to be specified for viewing/generating token. So what's the correct way to generate Token in FME Server2016.1 using postman or C#. Thank you very much.

Best answer by larry

This is how I do it on all versions:

http://fmeserver/fmetoken/generate?user=usr&password;=pwd&expiration;=1&timeunit;=day

Just tested on 2015.1 and 2017.1.

I don't have a 2016 at hand to test right now.

Using a form post does not seem to work on 2015.1, I have the same error message as you have.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

Forum|alt.badge.img
  • 173 replies
  • Best Answer
  • December 8, 2017

This is how I do it on all versions:

http://fmeserver/fmetoken/generate?user=usr&password;=pwd&expiration;=1&timeunit;=day

Just tested on 2015.1 and 2017.1.

I don't have a 2016 at hand to test right now.

Using a form post does not seem to work on 2015.1, I have the same error message as you have.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2940 replies
  • December 8, 2017

This is how I do it on all versions:

http://fmeserver/fmetoken/generate?user=usr&password;=pwd&expiration;=1&timeunit;=day

Just tested on 2015.1 and 2017.1.

I don't have a 2016 at hand to test right now.

Using a form post does not seem to work on 2015.1, I have the same error message as you have.

I can confirm this works in server 2016.

Forum|alt.badge.img
  • Author
  • 10 replies
  • December 8, 2017

resolve this issue, above "GET"method works, "POST" also works when specify body to x-www-form-urlencoded