<?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 Re: ArcGIS Oauth Error Handle in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710960#M66079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using Portal to access the items, instead, I simply use a MySQL to store the metadata, e.g. itemId, dataUrl. These layers are all from ArcGIS Online. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code constructed in this way:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Connect to DB to retrieve all the layers' metadata.&lt;/LI&gt;&lt;LI&gt;Based on the metadata, make requests and use related functions to create layers.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem raised in the second step. Because the privilege problems could be in any layers, and I cannot find a way to know whether there is an error. And the error will&amp;nbsp;block the remaining codes, which is fatal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2017 21:03:59 GMT</pubDate>
    <dc:creator>YukiHuang</dc:creator>
    <dc:date>2017-07-26T21:03:59Z</dc:date>
    <item>
      <title>ArcGIS Oauth Error Handle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710955#M66074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am making an app which allows the user to search their own contents from ArcGIS Online, and share with others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if the user includes the contents&amp;nbsp;that are&amp;nbsp;not open to the public, a sign-in&amp;nbsp;window will pop up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an elegant way to handle this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 15:54:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710955#M66074</guid>
      <dc:creator>YukiHuang</dc:creator>
      <dc:date>2017-07-26T15:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Oauth Error Handle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710956#M66075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yuki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;That is not really an error, but intended behavior. To not have the sign-in dialog appear you would have to use a Proxy that has the credentials assigned in the proxy.config.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 17:16:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710956#M66075</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-07-26T17:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Oauth Error Handle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710957#M66076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help.&lt;/P&gt;&lt;P&gt;Yes, it is an intended behavior, but I cannot find an event handler provided by API.&lt;/P&gt;&lt;P&gt;Furthermore, it is not only the sign-in dialog problem, but the rest of the code will stop running. I just want to skip loading these layers if encountering privilege problem. In this case, is the proxy able to deal with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 20:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710957#M66076</guid>
      <dc:creator>YukiHuang</dc:creator>
      <dc:date>2017-07-26T20:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Oauth Error Handle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710958#M66077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yuki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;What does your code look like? Are you using the Portal class to access the items?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 20:32:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710958#M66077</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-07-26T20:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Oauth Error Handle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710959#M66078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is the first user "passing the items" to the second user?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My initial reaction is that the right way to do this is to pass a query around. &amp;nbsp;So,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;user A&amp;nbsp;picks out 3 items from their contents and you build a query that searches ArcGIS Online, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;id: &amp;lt;item_1_id&amp;gt; OR id: &amp;lt;item_2_id&amp;gt; OR id: &amp;lt;item_3_id&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then&amp;nbsp;user B,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;who is viewing the items, executes the query that user A built. &amp;nbsp;They&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;will only get&amp;nbsp;a response for items that they&amp;nbsp;have access to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 20:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710959#M66078</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-07-26T20:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Oauth Error Handle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710960#M66079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using Portal to access the items, instead, I simply use a MySQL to store the metadata, e.g. itemId, dataUrl. These layers are all from ArcGIS Online. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code constructed in this way:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Connect to DB to retrieve all the layers' metadata.&lt;/LI&gt;&lt;LI&gt;Based on the metadata, make requests and use related functions to create layers.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem raised in the second step. Because the privilege problems could be in any layers, and I cannot find a way to know whether there is an error. And the error will&amp;nbsp;block the remaining codes, which is fatal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 21:03:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710960#M66079</guid>
      <dc:creator>YukiHuang</dc:creator>
      <dc:date>2017-07-26T21:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Oauth Error Handle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710961#M66080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is exactly what I did!&lt;/P&gt;&lt;P&gt;But the problem is that if the first user(the owner of the data source) change the sharing status to be organizational or private later, the wrong data source will &lt;STRONG&gt;trap&lt;/STRONG&gt; the second user...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 21:46:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-oauth-error-handle/m-p/710961#M66080</guid>
      <dc:creator>YukiHuang</dc:creator>
      <dc:date>2017-07-26T21:46:19Z</dc:date>
    </item>
  </channel>
</rss>

