Solved

How to generate Token in FME Server 2016

  • 8 December 2017
  • 3 replies
  • 6 views

Badge

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.

icon

Best answer by larry 8 December 2017, 20:00

View original

3 replies

Badge

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.

Userlevel 6
Badge +31

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.
Badge

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

Reply