<?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 ArcGIS Online Trusted Servers with HTTP Basic Auth in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-trusted-servers-with-http-basic-auth/m-p/302034#M15170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a Feature Service secured with HTTP Basic Auth (Web-Tier authentication) and we need to publish this service in ArcGIS Online for editing. The service is accesible via SSL with valid certificate. But here comes the trouble...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1) When adding the service to the map, ArcGIS Online asks for credentials and displays the service correctly. Unfortunatelly at the same time we get an error stating that the service is not accessible for ArcGIS.com application and cannot be edited. Looking into the communication I've found the problem is caused by ArcGIS Online using a proxy which cannot access our service &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Forganization.maps.arcgis.com%2Fsharing%2Fproxy%3Fhttps%3A%2F%2Fourservice" rel="nofollow" target="_blank"&gt;http://organization.maps.arcgis.com/sharing/proxy?https://ourservice&lt;/A&gt;&lt;SPAN&gt;. Fiddler says it returns the http 502 error - Bad Gateway.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) According to the documentation (&lt;A href="https://doc.arcgis.com/en/arcgis-online/administer/configure-security.htm" title="https://doc.arcgis.com/en/arcgis-online/administer/configure-security.htm"&gt;Configure security settings—ArcGIS Online Help | ArcGIS&lt;/A&gt; ), this is expected behavior and Trusted Servers setting should be used to achieve this. AGOL is supposed to store credentials for those servers and pass them through the proxy, am I right? But when we add our domain to the trusted servers list, ArcGIS Online stops asking for credentials at all and we cannot even add the service to the map. AGOL only says the service cannot be added with no additional details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have CORS enabled on the server (it returns Access-Control-Allow-Origin: organization.maps.arcgis.com) and we've tried Chrome and IE 11, but with no luck. Is there something else that needs to be configured? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2016 16:38:55 GMT</pubDate>
    <dc:creator>KarelVondracek</dc:creator>
    <dc:date>2016-01-12T16:38:55Z</dc:date>
    <item>
      <title>ArcGIS Online Trusted Servers with HTTP Basic Auth</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-trusted-servers-with-http-basic-auth/m-p/302034#M15170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a Feature Service secured with HTTP Basic Auth (Web-Tier authentication) and we need to publish this service in ArcGIS Online for editing. The service is accesible via SSL with valid certificate. But here comes the trouble...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1) When adding the service to the map, ArcGIS Online asks for credentials and displays the service correctly. Unfortunatelly at the same time we get an error stating that the service is not accessible for ArcGIS.com application and cannot be edited. Looking into the communication I've found the problem is caused by ArcGIS Online using a proxy which cannot access our service &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Forganization.maps.arcgis.com%2Fsharing%2Fproxy%3Fhttps%3A%2F%2Fourservice" rel="nofollow" target="_blank"&gt;http://organization.maps.arcgis.com/sharing/proxy?https://ourservice&lt;/A&gt;&lt;SPAN&gt;. Fiddler says it returns the http 502 error - Bad Gateway.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) According to the documentation (&lt;A href="https://doc.arcgis.com/en/arcgis-online/administer/configure-security.htm" title="https://doc.arcgis.com/en/arcgis-online/administer/configure-security.htm"&gt;Configure security settings—ArcGIS Online Help | ArcGIS&lt;/A&gt; ), this is expected behavior and Trusted Servers setting should be used to achieve this. AGOL is supposed to store credentials for those servers and pass them through the proxy, am I right? But when we add our domain to the trusted servers list, ArcGIS Online stops asking for credentials at all and we cannot even add the service to the map. AGOL only says the service cannot be added with no additional details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have CORS enabled on the server (it returns Access-Control-Allow-Origin: organization.maps.arcgis.com) and we've tried Chrome and IE 11, but with no luck. Is there something else that needs to be configured? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:38:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-trusted-servers-with-http-basic-auth/m-p/302034#M15170</guid>
      <dc:creator>KarelVondracek</dc:creator>
      <dc:date>2016-01-12T16:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Trusted Servers with HTTP Basic Auth</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-trusted-servers-with-http-basic-auth/m-p/302035#M15171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like you're going through the correct steps to edit your web tier secured service. It would be best to contact Technical Support - they'll be able to troubleshoot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 18:27:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-trusted-servers-with-http-basic-auth/m-p/302035#M15171</guid>
      <dc:creator>ChrisWhitmore</dc:creator>
      <dc:date>2016-01-25T18:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Trusted Servers with HTTP Basic Auth</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-trusted-servers-with-http-basic-auth/m-p/302036#M15172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Were you able to resolve this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 13:59:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-trusted-servers-with-http-basic-auth/m-p/302036#M15172</guid>
      <dc:creator>AlexEvett</dc:creator>
      <dc:date>2016-06-07T13:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Trusted Servers with HTTP Basic Auth</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-trusted-servers-with-http-basic-auth/m-p/302037#M15173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we've solved it only halfway. We are now able to add feature layer to a map for editing. There is still this problem with ArcGIS Online calling sharing/proxy (returns 502 error), but the map doesn't seem to care and works fine with the layer. It was a long process of debuging, but from what I can recall, the most important part was to handle the HTTP headers correctly. There must be two-way trust set up for ArcGIS Online and the map service server, which must return:&lt;/P&gt;&lt;OL class="children expanded" style="list-style-type: none; padding-left: 12px; padding-bottom: 5px; color: #222222; font-family: 'Segoe UI', Tahoma, sans-serif; font-size: 12px;"&gt;&lt;LI&gt;&lt;SPAN class="header-name" style="color: #545454; margin-right: 0.5em; font-weight: bold;"&gt;Access-Control-Allow-Credentials:&lt;/SPAN&gt;&lt;SPAN class="header-value source-code" style="font-family: Consolas, 'Lucida Console', monospace; margin-right: 1em; margin-top: 1px;"&gt;true&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="header-name" style="color: #545454; margin-right: 0.5em; font-weight: bold;"&gt;Access-Control-Allow-Origin:&lt;/SPAN&gt;&lt;SPAN class="header-value source-code" style="font-family: Consolas, 'Lucida Console', monospace; margin-right: 1em; margin-top: 1px;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Forg_name.maps.arcgis.com" rel="nofollow" target="_blank"&gt;http://org_name.maps.arcgis.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;What remains unsolved is the possibility to add the layer to "My content" section (Add Item from Web). ArcGIS Online still expects the layer to have token authentication and pops up the OAuth credentials form instead of asking for basic auth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:15:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-trusted-servers-with-http-basic-auth/m-p/302037#M15173</guid>
      <dc:creator>KarelVondracek</dc:creator>
      <dc:date>2016-06-08T10:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Trusted Servers with HTTP Basic Auth</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-trusted-servers-with-http-basic-auth/m-p/302038#M15174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for taking your time to reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 13:11:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-trusted-servers-with-http-basic-auth/m-p/302038#M15174</guid>
      <dc:creator>AlexEvett</dc:creator>
      <dc:date>2016-06-08T13:11:25Z</dc:date>
    </item>
  </channel>
</rss>

