<?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 Modify headers for Dynamic Map Service in MapView in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/modify-headers-for-dynamic-map-service-in-mapview/m-p/141762#M1609</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;&lt;/P&gt;&lt;P&gt;We are developing a runtime application for windows device that will display ArcGISDynamicMapServiceLayer from onsite ArcGIS for Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a reverse proxy between the runtime app and onsite ArcGIS server. The reverse proxy server needs to authenticate app user using a cookie or token. Runtime application will generate a session cookie at the start up and will pass this cookie in a header of the request. Reverse proxy will authenticate the user and if successful, reverse proxy to ArcGIS Server service behind the firewall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot see a provision in DotNet SDK to intercept calls made by MapView and add necessary cookie or token in a header. I can see ArcGISHttpClientHandler and ArcGISHttpClient classes but I cannot determine how to plumb this with MapViewer and intercept calls to inject header. This functionality exists in Android SDK, see &lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/core/io/HttpRequestListener.html#onRequestInterception%28org.apache.http.HttpRequest,%20org.apache.http.protocol.HttpContext%29" title="https://developers.arcgis.com/android/api-reference/reference/com/esri/core/io/HttpRequestListener.html#onRequestInterception%28org.apache.http.HttpRequest,%20org.apache.http.protocol.HttpContext%29"&gt;HttpRequestListener | ArcGIS Android 10.2.7 API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This must be stock standard requirement for all secured services behind the firewall with reverse proxy between. Am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2016 00:35:17 GMT</pubDate>
    <dc:creator>VishApte</dc:creator>
    <dc:date>2016-05-06T00:35:17Z</dc:date>
    <item>
      <title>Modify headers for Dynamic Map Service in MapView</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/modify-headers-for-dynamic-map-service-in-mapview/m-p/141762#M1609</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;&lt;/P&gt;&lt;P&gt;We are developing a runtime application for windows device that will display ArcGISDynamicMapServiceLayer from onsite ArcGIS for Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a reverse proxy between the runtime app and onsite ArcGIS server. The reverse proxy server needs to authenticate app user using a cookie or token. Runtime application will generate a session cookie at the start up and will pass this cookie in a header of the request. Reverse proxy will authenticate the user and if successful, reverse proxy to ArcGIS Server service behind the firewall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot see a provision in DotNet SDK to intercept calls made by MapView and add necessary cookie or token in a header. I can see ArcGISHttpClientHandler and ArcGISHttpClient classes but I cannot determine how to plumb this with MapViewer and intercept calls to inject header. This functionality exists in Android SDK, see &lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/core/io/HttpRequestListener.html#onRequestInterception%28org.apache.http.HttpRequest,%20org.apache.http.protocol.HttpContext%29" title="https://developers.arcgis.com/android/api-reference/reference/com/esri/core/io/HttpRequestListener.html#onRequestInterception%28org.apache.http.HttpRequest,%20org.apache.http.protocol.HttpContext%29"&gt;HttpRequestListener | ArcGIS Android 10.2.7 API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This must be stock standard requirement for all secured services behind the firewall with reverse proxy between. Am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 00:35:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/modify-headers-for-dynamic-map-service-in-mapview/m-p/141762#M1609</guid>
      <dc:creator>VishApte</dc:creator>
      <dc:date>2016-05-06T00:35:17Z</dc:date>
    </item>
  </channel>
</rss>

