Token service not working

4405
1
Jump to solution
02-20-2014 05:55 AM
SteveBratt
New Contributor III
I have a 10.2 ArcGIS Server with SSL enabled. Both these token services work:
The old URL: https://server.domain.com/arcgis/tokens/ and
the new URL (10.1+?): https://server.domain.com/arcgis/admin/generatetoken

I have a 10.1 ArcGIS Server with SSL not enabled. Only one of these token services work:
The old URL: http://server.domain.com/arcgis/tokens/ DOES NOT WORK and
the new URL: http://server.domain.com/arcgis/admin/generatetoken does work.

Both ArcGIS Servers are configured to use a Web Adaptor ("arcgis").

The error for the failing in the token service UI is "Invalid request
Usage: http://server.domain.com/arcgis/tokens?request=gettoken&username=username&password=password&
Usage: http://server.domain.com/arcgis/tokens/generateToken?username=username&password=password&
Usage: http://server.domain.com/arcgis/tokens/gettoken.html"

and for the URL with passed parameters (http://server.domain.com/arcgis/tokens?request=gettoken&username=XXXXX&password=XXXXX&) is "Specified argument was out of the range of valid values. Parameter name: offset"

The user/pw is valid, as it works from the new URL and to access the secured folder in the REST directory.

Questions:
1. Why are there 2 URLs for accessing the token service?
2. Why doesn't the "old" token service URL work for the 10.1 server?

Many thanks.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
SteveBratt
New Contributor III
Contacted esri support. There is a bug, NIM088894, which states that the token generator from http://<server>.<domain>.com/webadaptor/tokens does not work unless the Web Adapter name is 'arcgis'. I tried to genericize my URLs but in actuality my Web Adapter was not named "arcgis".

Unistalling and reinstalling the Web Adapter using the name "arcgis" (lower case) fixed the problem. The original token service now works.

View solution in original post

0 Kudos
1 Reply
SteveBratt
New Contributor III
Contacted esri support. There is a bug, NIM088894, which states that the token generator from http://<server>.<domain>.com/webadaptor/tokens does not work unless the Web Adapter name is 'arcgis'. I tried to genericize my URLs but in actuality my Web Adapter was not named "arcgis".

Unistalling and reinstalling the Web Adapter using the name "arcgis" (lower case) fixed the problem. The original token service now works.
0 Kudos