<?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 Request for map image from a secured ArcGIS Server WMS service in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/request-for-map-image-from-a-secured-arcgis-server/m-p/1235066#M34658</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a map service published on my ArcGIS Server (10.8.1) and the service is secured using the tools within Server Manager.&amp;nbsp; I mainly use this service in JavaScript APIs making use of addProxyRule to pass all the map requests through a proxy page containing the necessary credentials.&amp;nbsp; This works great.&lt;/P&gt;&lt;P&gt;I now want to be able to make requests to the same secured service (which is WMS enabled) to return .png images. I have a third-party application that needs to consume the map as WMS.&amp;nbsp; At the moment this third-party application is using an unsecured WMS service and can successfully make requests a bit like this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://myServer/arcgis/services/MyService/MapServer/WMSServer?VERSION=1.3.0&amp;amp;REQUEST=Getmap&amp;amp;CRS=EPSG:27700&amp;amp;BBOX=1000,1000,1100,1100&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;LAYERS=0,2,3,4&amp;amp;STYLES=&amp;amp;FORMAT=image/png" target="_blank"&gt;https://myServer/arcgis/services/MyService/MapServer/WMSServer?VERSION=1.3.0&amp;amp;REQUEST=Getmap&amp;amp;CRS=EPSG:27700&amp;amp;BBOX=1000,1000,1100,1100&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;LAYERS=0,2,3,4&amp;amp;STYLES=&amp;amp;FORMAT=image/png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As expected, if I change the service name from MyService to MySecuredService I get a forbidden message.&amp;nbsp; I have tried creating a URL which is prefixed with my proxy page location like this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://myServer/proxy.ashx?https://myServer/arcgis/services/MySecuredService/MapServer/WMSServer?VERSION=1.3.0&amp;amp;REQUEST=Getmap&amp;amp;CRS=EPSG:27700&amp;amp;BBOX=1000,1000,1100,1100&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;LAYERS=0,2,3,4&amp;amp;STYLES=&amp;amp;FORMAT=image/png" target="_blank"&gt;https://myServer/proxy.ashx?https://myServer/arcgis/services/MySecuredService/MapServer/WMSServer?VERSION=1.3.0&amp;amp;REQUEST=Getmap&amp;amp;CRS=EPSG:27700&amp;amp;BBOX=1000,1000,1100,1100&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;LAYERS=0,2,3,4&amp;amp;STYLES=&amp;amp;FORMAT=image/png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But this doesn’t work, either by design or because I’m doing it wrong, but making requests from a JS API to the ESRI REST endpoint of the secured service works through this proxy page, just not doing WMS by entering the URL in a web browser to test.&amp;nbsp; The unsecured service WMS map request works fine by testing the URL in a web browser.&lt;/P&gt;&lt;P&gt;Can anyone please help by explaining how I can get this third-part application to make WMS map image requests to the secured service?&amp;nbsp; There is very limited scope for modifying the third-party application, it simply has a config file where I can enter the base service URL for it to make the requests which is why I was hoping simply adding the proxy page to the start of the URL would work.&amp;nbsp; I have also tried hosting the proxy page with the application and on the ArcGIS Server server, and I’ve tested the allowedReferers isn’t an issue.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Mark.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2022 15:31:07 GMT</pubDate>
    <dc:creator>MarkSmith</dc:creator>
    <dc:date>2022-11-25T15:31:07Z</dc:date>
    <item>
      <title>Request for map image from a secured ArcGIS Server WMS service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/request-for-map-image-from-a-secured-arcgis-server/m-p/1235066#M34658</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a map service published on my ArcGIS Server (10.8.1) and the service is secured using the tools within Server Manager.&amp;nbsp; I mainly use this service in JavaScript APIs making use of addProxyRule to pass all the map requests through a proxy page containing the necessary credentials.&amp;nbsp; This works great.&lt;/P&gt;&lt;P&gt;I now want to be able to make requests to the same secured service (which is WMS enabled) to return .png images. I have a third-party application that needs to consume the map as WMS.&amp;nbsp; At the moment this third-party application is using an unsecured WMS service and can successfully make requests a bit like this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://myServer/arcgis/services/MyService/MapServer/WMSServer?VERSION=1.3.0&amp;amp;REQUEST=Getmap&amp;amp;CRS=EPSG:27700&amp;amp;BBOX=1000,1000,1100,1100&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;LAYERS=0,2,3,4&amp;amp;STYLES=&amp;amp;FORMAT=image/png" target="_blank"&gt;https://myServer/arcgis/services/MyService/MapServer/WMSServer?VERSION=1.3.0&amp;amp;REQUEST=Getmap&amp;amp;CRS=EPSG:27700&amp;amp;BBOX=1000,1000,1100,1100&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;LAYERS=0,2,3,4&amp;amp;STYLES=&amp;amp;FORMAT=image/png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As expected, if I change the service name from MyService to MySecuredService I get a forbidden message.&amp;nbsp; I have tried creating a URL which is prefixed with my proxy page location like this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://myServer/proxy.ashx?https://myServer/arcgis/services/MySecuredService/MapServer/WMSServer?VERSION=1.3.0&amp;amp;REQUEST=Getmap&amp;amp;CRS=EPSG:27700&amp;amp;BBOX=1000,1000,1100,1100&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;LAYERS=0,2,3,4&amp;amp;STYLES=&amp;amp;FORMAT=image/png" target="_blank"&gt;https://myServer/proxy.ashx?https://myServer/arcgis/services/MySecuredService/MapServer/WMSServer?VERSION=1.3.0&amp;amp;REQUEST=Getmap&amp;amp;CRS=EPSG:27700&amp;amp;BBOX=1000,1000,1100,1100&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;LAYERS=0,2,3,4&amp;amp;STYLES=&amp;amp;FORMAT=image/png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But this doesn’t work, either by design or because I’m doing it wrong, but making requests from a JS API to the ESRI REST endpoint of the secured service works through this proxy page, just not doing WMS by entering the URL in a web browser to test.&amp;nbsp; The unsecured service WMS map request works fine by testing the URL in a web browser.&lt;/P&gt;&lt;P&gt;Can anyone please help by explaining how I can get this third-part application to make WMS map image requests to the secured service?&amp;nbsp; There is very limited scope for modifying the third-party application, it simply has a config file where I can enter the base service URL for it to make the requests which is why I was hoping simply adding the proxy page to the start of the URL would work.&amp;nbsp; I have also tried hosting the proxy page with the application and on the ArcGIS Server server, and I’ve tested the allowedReferers isn’t an issue.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Mark.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 15:31:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/request-for-map-image-from-a-secured-arcgis-server/m-p/1235066#M34658</guid>
      <dc:creator>MarkSmith</dc:creator>
      <dc:date>2022-11-25T15:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Request for map image from a secured ArcGIS Server WMS service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/request-for-map-image-from-a-secured-arcgis-server/m-p/1235145#M34660</link>
      <description>&lt;P&gt;I think your going to struggle. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;WMS is from the Open Geospatial Consortium with an emphasis on OPEN - freely available and no security. &amp;nbsp;The OGC standards (last time I checked) do not have a security specification.&lt;/P&gt;&lt;P&gt;some third party clients like QGIS have an understanding of HTTP Basic auth which is old and not too secure. &amp;nbsp;They also work with Integrated Windows Authentication. Esri no longer support HTTP Basic (with good reason) and IWA is available but will possibly change your workflows. &amp;nbsp;It’s IWA or ArcGIS Server security. &amp;nbsp;It would be worth investigating, but would need external users to be registered in your AD. &amp;nbsp;A much wider security decision would be needed.&lt;/P&gt;&lt;P&gt;the ASHX proxy is a proprietary Esri toolkit and you’re using it in the right way by the sounds of it. &amp;nbsp;It is designed to work with Esri viewers and APIs. &amp;nbsp;Through code you make them proxy aware. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;third party apps will have no knowledge of the ashx. &amp;nbsp;They will have no connectivity to it.&lt;/P&gt;&lt;P&gt;in saying all of this. Some third party apps like QGIS have plugins that allow you to connect to some Esri authentication methods, but not the ASHX route.&lt;/P&gt;&lt;P&gt;The resolution here is changing your security methods or changing the client. &amp;nbsp;It would be a nightmare and a significant security risk for Esri to allow connections from anything and everything.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;sorry, probably not what you want to read. But open and secure are quite literally opposite extremes in my experience.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 23:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/request-for-map-image-from-a-secured-arcgis-server/m-p/1235145#M34660</guid>
      <dc:creator>Scott_Tansley</dc:creator>
      <dc:date>2022-11-25T23:49:19Z</dc:date>
    </item>
  </channel>
</rss>

