<?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 Editing ArcGIS Online Hosted Layers in Secured Web Application in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-arcgis-online-hosted-layers-in-secured-web/m-p/665748#M62183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt; Develop a web application using ArcGIS Javascript API that has a single login experience for the end user and that enables them to edit feature layers hosted on ArcGIS Online.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;STRONG&gt;Setup:&lt;/STRONG&gt; We are using a closed Wordpress instance (registration is off, credentials provided to a small user group) to handle user login/logout. Some layers consumed by the application are hosted on ArcGIS Online, others are hosted on our own instance of ArcGIS Server.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt; &lt;A href="https://developers.arcgis.com/authentication/#capabilities-table" rel="nofollow" style="color: #358daa;"&gt;According to this documentation&lt;/A&gt;, there are two authentication options for protected layers: (1) user login, and (2) application authentication. We must use the first option because of the limitations associated with application authentication, specifically the inability to edit features.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;In order to maintain our single login experience, we are trying to figure out the best way to bypass the ArcGIS Online signin dialog that is associated with user login.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Based on some research, one way to go about doing this is to (a) generate a token using a "generic AGOL user" that has access to the necessary data layers and then (b) use that token with every request of a secured layer.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;A href="http://server.arcgis.com/en/server/10.3/administer/linux/acquiring-arcgis-tokens.htm" rel="nofollow" style="color: #358daa;"&gt;We can use a post request&lt;/A&gt; to successfully generate this token using hard-coded credentials in a PHP file on the server. But, &lt;A href="http://gis.stackexchange.com/questions/124024/appending-token-to-arcgis-api-for-javascript-geocoder-widget" style="color: #358daa;"&gt;as this post suggests&lt;/A&gt;, it is unsafe to pass the token to the client, so it is best to &lt;A href="https://developers.arcgis.com/authentication/working-with-proxies/" rel="nofollow" style="color: #358daa;"&gt;use a proxy&lt;/A&gt; to do everything.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; We want to use the proxy service that generates a token from hard-coded AGOL credentials and then appends that token to every request to a secure layer made by our Javascript app. Are there any examples of this available for us to reference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2016 15:52:19 GMT</pubDate>
    <dc:creator>ColinStief2</dc:creator>
    <dc:date>2016-04-11T15:52:19Z</dc:date>
    <item>
      <title>Editing ArcGIS Online Hosted Layers in Secured Web Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-arcgis-online-hosted-layers-in-secured-web/m-p/665748#M62183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt; Develop a web application using ArcGIS Javascript API that has a single login experience for the end user and that enables them to edit feature layers hosted on ArcGIS Online.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;STRONG&gt;Setup:&lt;/STRONG&gt; We are using a closed Wordpress instance (registration is off, credentials provided to a small user group) to handle user login/logout. Some layers consumed by the application are hosted on ArcGIS Online, others are hosted on our own instance of ArcGIS Server.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt; &lt;A href="https://developers.arcgis.com/authentication/#capabilities-table" rel="nofollow" style="color: #358daa;"&gt;According to this documentation&lt;/A&gt;, there are two authentication options for protected layers: (1) user login, and (2) application authentication. We must use the first option because of the limitations associated with application authentication, specifically the inability to edit features.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;In order to maintain our single login experience, we are trying to figure out the best way to bypass the ArcGIS Online signin dialog that is associated with user login.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Based on some research, one way to go about doing this is to (a) generate a token using a "generic AGOL user" that has access to the necessary data layers and then (b) use that token with every request of a secured layer.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;A href="http://server.arcgis.com/en/server/10.3/administer/linux/acquiring-arcgis-tokens.htm" rel="nofollow" style="color: #358daa;"&gt;We can use a post request&lt;/A&gt; to successfully generate this token using hard-coded credentials in a PHP file on the server. But, &lt;A href="http://gis.stackexchange.com/questions/124024/appending-token-to-arcgis-api-for-javascript-geocoder-widget" style="color: #358daa;"&gt;as this post suggests&lt;/A&gt;, it is unsafe to pass the token to the client, so it is best to &lt;A href="https://developers.arcgis.com/authentication/working-with-proxies/" rel="nofollow" style="color: #358daa;"&gt;use a proxy&lt;/A&gt; to do everything.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #272727; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; We want to use the proxy service that generates a token from hard-coded AGOL credentials and then appends that token to every request to a secure layer made by our Javascript app. Are there any examples of this available for us to reference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 15:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-arcgis-online-hosted-layers-in-secured-web/m-p/665748#M62183</guid>
      <dc:creator>ColinStief2</dc:creator>
      <dc:date>2016-04-11T15:52:19Z</dc:date>
    </item>
  </channel>
</rss>

