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 -
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:
[LEFT][FONT=Microsoft Sans Serif]Unable to connect to map server at"
[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?