Accessing secured map services via PrintTask

Discussion created by ZKristov on Jan 30, 2014
Latest reply on Feb 21, 2014 by ZKristov
Background: We are building a JS API application that access services via Portal for ArcGIS.

We are having some issues accessing our secured services using the PrintTask. We have a federated setup (Portal for ArcGIS), but don't have the ability to access our service endpoints (w/ tokens) via the PrintTask.

Below is a JSON response captured in Fiddler.

"message":"Unable to complete operation.",
"details":["Error executing tool.: Layer \"GSS_EVENTS\": Unable to connect to map server at https://some.server/arcgis/rest/services/Maps/GSS_EVENTS/MapServer.
\nERROR: code:403, User does not have permissions to access 'maps/gss_events.mapserver'., Access to this resource is forbidden, regardless of authorization.
\nFailed to execute (Export Web Map).\nFailed to execute (Export Web Map Task)."]}}

Does the PrintTask support secured services (via Portal tokens)?