AnsweredAssumed Answered

Generate Token SSL Response

Question asked by wlanzaEsri on Oct 4, 2018

Hi, I am trying to generate a token via a java web app. It works on some servers, but on others I get a response that I don't expect (happens via the app and when posting directly in a browser:

 

Request looks like this:

 

http://localhost:6080/arcgis/admin/generateToken?username=myuser&password=mypwd&f=json&client=requestip

or this:

https://localhost:6443/arcgis/admin/generateToken?username=myuser&password=mypwd&f=json&client=requestip

 

Response looks like this:

{"ssl":{"supportsSSL":true,"sslPort":6443}}

 

as opposed to what I expect:

{"token":"U4rudliz0r6yQG2esK1Mcha8utQ-6XQVJG5iTHH8we2HHx1JR6MA52g3FYXuMVCX","expires":"1538503485453"}

The response doesn't indicate it's an error. So I'm a little confused.

Also, if, on the problem servers, I go to the UI for generating a token (http://localhost:6080/arcgis/admin), it generates a token correctly.

Is there some sort of configuration in ArcServer that needs setting? I don't see anything blatantly different when I compare working vs non-working server configurations.

 

Thanks in advance#

Outcomes