shaun_weston-eagle-co-nz-esridist

Export Web Map With Token Secure GIS Services

Discussion created by shaun_weston-eagle-co-nz-esridist on Mar 28, 2013
Latest reply on Aug 12, 2016 by jrob76
I'm finding that the export web map tool does not work with GIS services that have token authentication, I've tried everything and it just doesn't work?

I've setup an export web map service and added in a server connection like it says here - http://resources.arcgis.com/en/help/main/10.1/#/Printing_maps_that_contain_secured_services/0154000005q3000000/
I'm using the PSA account to connect to the secure gis service.

I then request a token (I've tried all methods - HTTP referer, Request IP, IP) for my Flex Viewer application and add it in. The application works ok and shows the layer, however when I go to export web map with this layer turned on it shows this in fiddler:
[/FONT]
[LEFT][FONT=Microsoft Sans Serif]Unable to connect to map server at http://203.190.214.166/arcgis/rest/services/Masterton/UtilitiesInternal/MapServer?token=AgTh7DdcmY2M1KTI404XaRX4YvnrardE817qHqw7cQsP-ptogfRbijdkH3VME8vS."
[/LEFT]
[LEFT]
[/LEFT]
[LEFT]{"type":"esriJobMessageTypeError","description":"Token-based authentication failure."}

If I don't use this layer it works fine. If I don't use token authentication and use the identity manager to login it works fine. I just don't understand why this always shows an error, I just can't print with a secure service?
[/LEFT]

Outcomes