AnsweredAssumed Answered

HTTP Referrer Token not working for secured services in Server 10.1SP1

Question asked by jay.gregory on Feb 8, 2013
Latest reply on Feb 11, 2013 by rlwatson
So I have tried to generate a token at http://<myserver>:6080/arcgis/admin/generateToken, using the HTTP Referrer parameter, passing it the REST endpoint http://<myserver>:6080/arcgis/rest/services/<myfolder>/<myservice>/MapServer and setting the Expiration field to 30.  This REST endpoint is only accessible with the same credentials I used when generating the token. 

Immediately after getting the token, I tried to test my token by using a web browser and entering
http://<myserver>:6080/arcgis/rest/services/<myfolder>/<myservice>/MapServer?f=json&token=<mytoken>
The response I get back is {"error":{"code":498,"message":"Invalid Token","details":[]}}

However, I was able to get this to work using the Request IP parameter when generating the token.  The problem is I would like other folks to access my service with the token. 

Any advice?

Thanks, Jay

Outcomes