<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Accessing secured map services via PrintTask in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-map-services-via-printtask/m-p/181039#M16819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am experiencing the same error with secured map services and using our ArcGIS server export web map task. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Results from fiddler are similar:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"error":{"code":400,"message":"Unable to complete operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;details":["Error executing tool.: Layer \"....\": Unable to connect to map server at &lt;/SPAN&gt;&lt;A href="https://..../MapServer.\nFailed"&gt;https://..../MapServer.\nFailed&lt;/A&gt;&lt;SPAN&gt; to execute (Export Web Map).\nFailed to execute (Export Web Map Task)."]}}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2014 22:17:48 GMT</pubDate>
    <dc:creator>karenvolarich</dc:creator>
    <dc:date>2014-02-20T22:17:48Z</dc:date>
    <item>
      <title>Accessing secured map services via PrintTask</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-map-services-via-printtask/m-p/181038#M16818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Background: We are building a JS API application that access services via Portal for ArcGIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is a JSON response captured in Fiddler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{"error":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"code":400,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"message":"Unable to complete operation.",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"details":["Error executing tool.: Layer \"GSS_EVENTS\": Unable to connect to map server at &lt;/SPAN&gt;&lt;A href="https://some.server/arcgis/rest/services/Maps/GSS_EVENTS/MapServer"&gt;https://some.server/arcgis/rest/services/Maps/GSS_EVENTS/MapServer&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\nERROR: code:403, User does not have permissions to access 'maps/gss_events.mapserver'., Access to this resource is forbidden, regardless of authorization.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\nFailed to execute (Export Web Map).\nFailed to execute (Export Web Map Task)."]}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Does the PrintTask support secured services (via Portal tokens)?&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 14:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-map-services-via-printtask/m-p/181038#M16818</guid>
      <dc:creator>ZachChristoff</dc:creator>
      <dc:date>2014-01-30T14:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing secured map services via PrintTask</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-map-services-via-printtask/m-p/181039#M16819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am experiencing the same error with secured map services and using our ArcGIS server export web map task. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Results from fiddler are similar:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"error":{"code":400,"message":"Unable to complete operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;details":["Error executing tool.: Layer \"....\": Unable to connect to map server at &lt;/SPAN&gt;&lt;A href="https://..../MapServer.\nFailed"&gt;https://..../MapServer.\nFailed&lt;/A&gt;&lt;SPAN&gt; to execute (Export Web Map).\nFailed to execute (Export Web Map Task)."]}}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 22:17:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-map-services-via-printtask/m-p/181039#M16819</guid>
      <dc:creator>karenvolarich</dc:creator>
      <dc:date>2014-02-20T22:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing secured map services via PrintTask</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-map-services-via-printtask/m-p/181040#M16820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@kvolari&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is your Portal federated? Are you using windows authentication?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I resolved the issue by adding a user to our Portal site and giving them access to the map services. I made the assumption that the user needing access would be the end user, but that was false. It is actually the account used to setup ArcGIS Server. Also, make sure that account is &amp;gt;= publisher.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to determine which user by identifying that a new account was being created in Portal each time I called the Print Task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck... This one took me days to figure out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 13:30:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-map-services-via-printtask/m-p/181040#M16820</guid>
      <dc:creator>ZachChristoff</dc:creator>
      <dc:date>2014-02-21T13:30:38Z</dc:date>
    </item>
  </channel>
</rss>

