<?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 Problem printing WMS that uses windows authentication (JS 4.4) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-printing-wms-that-uses-windows/m-p/479345#M44561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to consume an external WMS-service that uses windows authentication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have configured the Esri-resource-proxy with creedentials and I am able to add the service to the map. No problem.&lt;BR /&gt;But when I try to print the map using the print widget, it fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that print service does not receive the proxy-url inside the print request.&lt;BR /&gt;I think that if there are any proxy rules in the client, they should also be forwarded to the printservice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bug? Have I missed something? Is there an easier solution to this problem?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;JS 4.4&lt;BR /&gt;resource-proxy 1.1.0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Arne Dahlman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Aug 2017 13:40:18 GMT</pubDate>
    <dc:creator>ArneDahlman</dc:creator>
    <dc:date>2017-08-11T13:40:18Z</dc:date>
    <item>
      <title>Problem printing WMS that uses windows authentication (JS 4.4)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-printing-wms-that-uses-windows/m-p/479345#M44561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to consume an external WMS-service that uses windows authentication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have configured the Esri-resource-proxy with creedentials and I am able to add the service to the map. No problem.&lt;BR /&gt;But when I try to print the map using the print widget, it fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that print service does not receive the proxy-url inside the print request.&lt;BR /&gt;I think that if there are any proxy rules in the client, they should also be forwarded to the printservice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bug? Have I missed something? Is there an easier solution to this problem?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;JS 4.4&lt;BR /&gt;resource-proxy 1.1.0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Arne Dahlman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 13:40:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-printing-wms-that-uses-windows/m-p/479345#M44561</guid>
      <dc:creator>ArneDahlman</dc:creator>
      <dc:date>2017-08-11T13:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem printing WMS that uses windows authentication (JS 4.4)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-printing-wms-that-uses-windows/m-p/479346#M44562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arne,&lt;/P&gt;&lt;P&gt;One option could be to use a modified version of the resource proxy:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://github.com/sverkerEsriSE/resource-proxy-tokens" title="https://github.com/sverkerEsriSE/resource-proxy-tokens"&gt;https://github.com/sverkerEsriSE/resource-proxy-tokens&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There might also be other usable proxies, like Apache with some proxy module and a bit of rewriting the resource URL:s, or MapProxy perhaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have used the proxy I linked to above with success when using it on some Swedish services with Http Basic Authentication (which is the reason it was modified).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Sverker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 14:05:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-printing-wms-that-uses-windows/m-p/479346#M44562</guid>
      <dc:creator>SverkerNorlander</dc:creator>
      <dc:date>2018-04-12T14:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem printing WMS that uses windows authentication (JS 4.4)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-printing-wms-that-uses-windows/m-p/479347#M44563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sverker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main problem was that no proxy information was forwarded to the printservice.&lt;BR /&gt;I think this is a bug in JS4. Proxy information should be honored also when Printing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our previous Silverlight application we also had this problem. Here we could write the url like this to bypass the problem:&lt;BR /&gt;&lt;A href="https://RESOURCEPROXYSERVER/esri-resource-proxy/proxy.ashx?http://maps.lantmateriet.se/topowebb/wms/v1?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities"&gt;https://RESOURCEPROXYSERVER/esri-resource-proxy/proxy.ashx?http://maps.lantmateriet.se/topowebb/wms/v1?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities&lt;/A&gt;&lt;BR /&gt;In JS4 this trick is no longer working. The url gets chopped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our problem was solved in another way. We have the product F5, which is a lokal trafic manager.&lt;BR /&gt;With F5 it is possible to do som url-rewriting like you suggest in your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The client points to F5 like it is a lokal network WMS-server (no proxy configuration in client).&lt;BR /&gt;In F5 the url is changed from:&lt;BR /&gt;&lt;A href="https://F5SERVER/topowebb/wms/v1?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities"&gt;https://F5SERVER/topowebb/wms/v1?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities&lt;/A&gt;&lt;BR /&gt;to:&lt;BR /&gt;&lt;A href="https://RESOURCEPROXYSERVER/esri-resource-proxy/proxy.ashx?http://maps.lantmateriet.se/topowebb/wms/v1?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities"&gt;https://RESOURCEPROXYSERVER/esri-resource-proxy/proxy.ashx?http://maps.lantmateriet.se/topowebb/wms/v1?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resource proxy is still needed for handelning the basic authentication.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Interesting fork you have made of the resurce-proxy.&lt;BR /&gt;I think it might solve som other issues we have. I'll definitely test it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Arne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 09:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-printing-wms-that-uses-windows/m-p/479347#M44563</guid>
      <dc:creator>ArneDahlman</dc:creator>
      <dc:date>2018-04-16T09:26:17Z</dc:date>
    </item>
  </channel>
</rss>

