<?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 Accessing Organizational Items with OAuth in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/accessing-organizational-items-with-oauth/m-p/1269263#M4887</link>
    <description>&lt;P&gt;So I've been following the C++ tutorials for the Qt framework and deploying to an iPhone simulator. I can successfully access and di&lt;EM&gt;s&lt;/EM&gt;play&amp;nbsp;&lt;EM&gt;public&lt;/EM&gt; items from my organization's ArcGIS Online portal. However, any attempt to display a map, feature layer, etc. that is set to "Organizational" sharing level does not succeed.&lt;/P&gt;&lt;P&gt;I followed the OAuth tutorial. I've added the "AuthenticationView" within my QML, and indeed the correct page opens to allow me to enter my credentials for OAuth for my organization's portal. However, after the portal has loaded, the map/feature layer/etc. does not appear. I've tried listening to the signals or waiting for the portal &amp;amp; item to finish loading before adding it to my map. However, there are no errors or anything else to debug off of to help me figure this out.&lt;/P&gt;&lt;P&gt;As I stated above, I've essentially followed the "display a map" tutorial along with the "Access Services with OAuth" tutorial. I've only swapped in the correct portal URL and item ID. I've tried basemaps, feature layers (following the correct add via the operationalLayers), waiting for loads, etc etc.&lt;/P&gt;&lt;P&gt;What other methods might I try to debug this? Or is it that even though I have access through my web browser to these items, my OAuth application does not? Let me know if further info is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I'm using Qt 6 and ArcGIS Toolkit 200.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: If I explicitly load a FeatureLayer, upon&amp;nbsp;&lt;EM&gt;doneLoading&lt;/EM&gt; I receive "Invalid request Response" error 7003. If I don't explicitly load, it never is actually &lt;EM&gt;doneLoading&lt;/EM&gt; no matter if I'm zoomed into where it should asynchronously call load.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 15:23:04 GMT</pubDate>
    <dc:creator>Wingold</dc:creator>
    <dc:date>2023-03-20T15:23:04Z</dc:date>
    <item>
      <title>Accessing Organizational Items with OAuth</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/accessing-organizational-items-with-oauth/m-p/1269263#M4887</link>
      <description>&lt;P&gt;So I've been following the C++ tutorials for the Qt framework and deploying to an iPhone simulator. I can successfully access and di&lt;EM&gt;s&lt;/EM&gt;play&amp;nbsp;&lt;EM&gt;public&lt;/EM&gt; items from my organization's ArcGIS Online portal. However, any attempt to display a map, feature layer, etc. that is set to "Organizational" sharing level does not succeed.&lt;/P&gt;&lt;P&gt;I followed the OAuth tutorial. I've added the "AuthenticationView" within my QML, and indeed the correct page opens to allow me to enter my credentials for OAuth for my organization's portal. However, after the portal has loaded, the map/feature layer/etc. does not appear. I've tried listening to the signals or waiting for the portal &amp;amp; item to finish loading before adding it to my map. However, there are no errors or anything else to debug off of to help me figure this out.&lt;/P&gt;&lt;P&gt;As I stated above, I've essentially followed the "display a map" tutorial along with the "Access Services with OAuth" tutorial. I've only swapped in the correct portal URL and item ID. I've tried basemaps, feature layers (following the correct add via the operationalLayers), waiting for loads, etc etc.&lt;/P&gt;&lt;P&gt;What other methods might I try to debug this? Or is it that even though I have access through my web browser to these items, my OAuth application does not? Let me know if further info is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I'm using Qt 6 and ArcGIS Toolkit 200.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: If I explicitly load a FeatureLayer, upon&amp;nbsp;&lt;EM&gt;doneLoading&lt;/EM&gt; I receive "Invalid request Response" error 7003. If I don't explicitly load, it never is actually &lt;EM&gt;doneLoading&lt;/EM&gt; no matter if I'm zoomed into where it should asynchronously call load.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 15:23:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/accessing-organizational-items-with-oauth/m-p/1269263#M4887</guid>
      <dc:creator>Wingold</dc:creator>
      <dc:date>2023-03-20T15:23:04Z</dc:date>
    </item>
  </channel>
</rss>

