AnsweredAssumed Answered

ArcGIS Server tokens not working

Question asked by donbrown44 on Dec 12, 2014
Latest reply on Aug 9, 2016 by dharshb1

I'm using ArcGIS Server 10.2.2 on Linux.

When I manually request a token from:

https://local_machine_name:6080/arcgis/tokens/

It works fine. When I manually request a token from (through web server):

https://webserver_domain/arcgis/tokens/

It doesn't work. I get:

 

Invalid request

Usage: https://webserver_domain/arcgis/tokens?request=gettoken&username=username&password=password&

Usage: https://webserver_domain/arcgis/tokens/generateToken?username=username&password=password&

Usage: https://webserver_domain/arcgis/tokens/gettoken.html

 

 

When I request manually with this URL (note the 'admin'), it works fine (this is through the web server):

https://webserver_domain/arcgis/admin/generatetoken/

 

So, it seems like through the REST endpoint, the 'post' is getting mangled between the web server and the GIS server?

Then, through the 'admin' endpoint, the 'post' works fine.

Any ideas?

 

One more question.... Why are there two ways to get a token? Is one method preferable?

Outcomes