<?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: How to modify our proxy so it allows the default printing service to print secured services? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204899#M18997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your answers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2018 11:23:40 GMT</pubDate>
    <dc:creator>MichaelLodes2</dc:creator>
    <dc:date>2018-04-26T11:23:40Z</dc:date>
    <item>
      <title>How to modify our proxy so it allows the default printing service to print secured services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204892#M18990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As in the title. We are logging in our users with the .dotnet resource Proxy hosted on our server. But when trying to print secured services the user is prompted to log in anyway.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As discussed in an older post, that's the intended behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The resource proxy will not print a secured map service. This is by design. So it is possible to use the proxy in order to authenticate and display the secured service on the map, but when it comes to printing a secured service, the resource proxy will not handle this scenario as it will not pass the token in the Web_Map_as_JSON parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/message/647796-re-web-appbuilder-arcgis-online-layer-print-issue?commentID=647796#comment-647796" title="https://community.esri.com/message/647796-re-web-appbuilder-arcgis-online-layer-print-issue?commentID=647796#comment-647796"&gt;https://community.esri.com/message/647796-re-web-appbuilder-arcgis-online-layer-print-issue?commentID=647796#comment-647…&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;I spoke with the Print widget guys at the UC in San Diego a few weeks ago (June/July 2016). They told me that in order for the print service to work, the proxy must be changed so that it will add a token on to a JSON output from the client side app. Currently, as stated above, the proxy will see the request from the print widget go through, but it will not attach a token to it. It is not the easiest solution, but it is the way to go.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/174867#comment-620278" title="https://community.esri.com/thread/174867#comment-620278"&gt;https://community.esri.com/thread/174867#comment-620278&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;NOTE: These would only work for the DotNet version of the Esri resource proxy.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;OL style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Get the "Web_Map_as_JSON" (WMAJ) parameter (and data it contains) from the the request.&amp;nbsp;&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Using a library like Newtonsoft.Json, deserialize the WMAJ data from a JSON object into a DotNet Object&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Get the "Operational Layers" section of the WMAJ object and add each layer into an array.&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Compare the Layer URL's of the layers from the WMAJ object and the URL's that are defined in the proxy.config file.&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;If a layer's URL matches a URL from the proxy config file, use the credential info to generate a token for it.&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Apply the token to the layer&amp;nbsp;in the array of "Operational Layers"&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Serialize the DotNet WMAJ object (now with tokens for the secured layers) and send the request on its way.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I include the print task URL in the app's config.json file and the proxy's proxy.config file.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/174867#comment-688539" title="https://community.esri.com/thread/174867#comment-688539"&gt;https://community.esri.com/thread/174867#comment-688539&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The possible solution above seems to be&amp;nbsp;really&amp;nbsp;difficult. We can't create a custom print service, since we don't want to use arg gis server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So since some time passed since then, i wanted to ask if this is possible by now, or if someone already did these proxy modifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Michael Lodes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 12:24:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204892#M18990</guid>
      <dc:creator>MichaelLodes2</dc:creator>
      <dc:date>2018-04-17T12:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify our proxy so it allows the default printing service to print secured services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204893#M18991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;No there has been no change to this that I know of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 12:53:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204893#M18991</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-04-17T12:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify our proxy so it allows the default printing service to print secured services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204894#M18992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for posting your question, &lt;A href="https://community.esri.com/migrated-users/282462"&gt;Michael Lodes&lt;/A&gt;! I hope the community can help. Any idea,‌&lt;A href="https://community.esri.com/people/raul.jimenezesri-es-esridist"&gt;raul.jimenezesri-es-esridist&lt;/A&gt;‌, &lt;A href="https://community.esri.com/people/jorge.barrachinaesri-es-esridist"&gt;jorge.barrachinaesri-es-esridist&lt;/A&gt;‌, &lt;A href="https://community.esri.com/people/mjagtesri-nl-esridist"&gt;mjagtesri-nl-esridist&lt;/A&gt;‌, &lt;A href="https://community.esri.com/people/RRubalcava-esristaff"&gt;RRubalcava-esristaff&lt;/A&gt;‌?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 14:28:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204894#M18992</guid>
      <dc:creator>LarsSchmitz</dc:creator>
      <dc:date>2018-04-17T14:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify our proxy so it allows the default printing service to print secured services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204895#M18993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mmm I have not idea but I think&amp;nbsp;&lt;A href="https://community.esri.com/people/bsvensson-esristaff"&gt;bsvensson-esristaff&lt;/A&gt;&amp;nbsp;can help us here &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 10:43:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204895#M18993</guid>
      <dc:creator>Raul_Jimenez</dc:creator>
      <dc:date>2018-04-18T10:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify our proxy so it allows the default printing service to print secured services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204896#M18994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't know too &lt;A href="https://community.esri.com/people/l.schmitzesri-de-esridist"&gt;l.schmitzesri-de-esridist&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 16:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204896#M18994</guid>
      <dc:creator>JorgeBarrachina_Gutiérrez</dc:creator>
      <dc:date>2018-04-25T16:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify our proxy so it allows the default printing service to print secured services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204897#M18995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/282462"&gt;Michael Lodes&lt;/A&gt;‌ I would recommend you to try to reach the people involved in the development through the Github issues of the project -&amp;gt;&amp;nbsp;&lt;A class="link-titled" href="https://github.com/esri/resource-proxy/issues" title="https://github.com/esri/resource-proxy/issues"&gt;Issues · Esri/resource-proxy · GitHub&lt;/A&gt;&amp;nbsp;, they might not have the GeoNet notifications enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 06:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204897#M18995</guid>
      <dc:creator>Raul_Jimenez</dc:creator>
      <dc:date>2018-04-26T06:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify our proxy so it allows the default printing service to print secured services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204898#M18996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is a good hint indeed, &lt;A href="https://community.esri.com/migrated-users/70699"&gt;Raúl Jiménez Ortega&lt;/A&gt;‌. I think &lt;A href="https://community.esri.com/migrated-users/6443"&gt;Rene Rubalcava&lt;/A&gt;&amp;nbsp;is a good starting point&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 08:27:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204898#M18996</guid>
      <dc:creator>LarsSchmitz</dc:creator>
      <dc:date>2018-04-26T08:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify our proxy so it allows the default printing service to print secured services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204899#M18997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your answers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 11:23:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204899#M18997</guid>
      <dc:creator>MichaelLodes2</dc:creator>
      <dc:date>2018-04-26T11:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify our proxy so it allows the default printing service to print secured services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204900#M18998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/282462"&gt;Michael Lodes&lt;/A&gt;‌&amp;nbsp;&lt;BR /&gt;No there hasn't been any changes in the resource proxy to support this. The preferred way is to use a custom print service. I'll respond on &lt;A href="https://github.com/Esri/resource-proxy/issues/480"&gt;your github issue&lt;/A&gt; as well with some more details..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 18:22:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-our-proxy-so-it-allows-the-default/m-p/204900#M18998</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2018-05-03T18:22:20Z</dc:date>
    </item>
  </channel>
</rss>

