Skip to main content
Solved

How to generate Token in FME Server 2016


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.

View original
Did this help you find an answer to your question?

3 replies

Forum|alt.badge.img
  • 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+54
larry wrote:

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
  • December 8, 2017

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings