Generate token giving unexpected result

284
0
10-02-2018 10:54 AM
WilliamLanza
New Contributor

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=reques...

or this:

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

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

Tags (1)
0 Kudos
0 Replies