10.1 always returns true for RequiresTokens

288
2
05-24-2013 05:07 AM
SzymonPiskula
New Contributor
Hi,

Im accessing Server 10.1 via C# SOAP proxy classes. To see if i need to generate token i call Service Catalog's method RequiresTokens. Every time i call it it returns 'true' although not a single service on the server is secured. If i point at other 9.3.1 unprotected server instance the same code  correctly returns 'false' when  calling RequiresTokens. On the 10.1 server i have no web adaptor installed or configured. Any hints or ideas how to detect if token generation is needed?

Btw is there RequiresTokens available via REST ?

Thanks
Tags (2)
0 Kudos
2 Replies
RichardWatson
Frequent Contributor
Here is the link that you can use on the ArcGIS Server machine to see the REST documentation:

http://localhost:6080/arcgis/admin/www/doc/index.html

Here is a good discussion on security (search for token):

http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000005qz000000
0 Kudos
nicogis
MVP Frequent Contributor
In 10.1 you can ask to know if accepts or requires tokens (see http://resources.arcgis.com/en/help/soap/10.1/index.html#//01vp00000006000000)

in rest you can test with
http://yourserver/arcgis/rest/services/yourservicesecurity/MapServer?f=json. if is protected you have


{"error":{"code":499,"message":"Unauthorized access","details":[]}}

0 Kudos