<?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: MapViewer problems with secured services in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/mapviewer-problems-with-secured-services/m-p/708224#M31</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm also getting a similar message in another app that is also based off the Map Viewer template. If I am not signed in, then sign in, I can view secure web maps. But if I then close and re-open the app, I get an error message when trying to open any of the same web maps. The error says "client_id not specified".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what's going on there, but when I check Fiddler traffic, the clientid is for some reason "ref.runtimeqtsdk" - not sure how that is happening or whether it's correct or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2018 04:24:35 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-07-04T04:24:35Z</dc:date>
    <item>
      <title>MapViewer problems with secured services</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/mapviewer-problems-with-secured-services/m-p/708221#M28</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having difficulties with the MapViewer template and secured services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I created a new app from the MapViewer template. I enabled secure sign-in in the settings, then started up the app and signed in. I chose a secured web map from the Gallery and opened it. As soon as I try to pan/zoom the map, I get a pop up that says "This request needs to be made over https". I inspected the web traffic in Fiddler, and I can see the app hit the feature service url in ArcGIS Online, which returns a 'token required' and that the "owningSystemUrl" is &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.ArcGIS.com" rel="nofollow" target="_blank"&gt;http://www.ArcGIS.com&lt;/A&gt;&lt;SPAN&gt;. The next request is to&amp;nbsp;&lt;/SPAN&gt;&lt;A class="link-titled" href="http://www.arcgis.com/sharing/rest/oauth2/token" title="http://www.arcgis.com/sharing/rest/oauth2/token"&gt;http://www.arcgis.com/sharing/rest/oauth2/token&lt;/A&gt; which fails with the message in the popup of the app, that the request needs to be made over https.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I could think to check was in the AGOL org settings, and for the org I had signed into, the admin setting to '&lt;SPAN style="color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-size: 14.875px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Allow access to the organization through&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="border-bottom: 1px dotted #487696; color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-size: 14.875px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;HTTPS&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-size: 14.875px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;only' was unchecked. I enabled that, and tried again. I got the same result, but with a slightly different message: "Request not made over ssl". I noted that in Fiddler, the token request was again using http, even though the "owningSystemUrl" in the previous step had changed to https.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question here is why does it attempt to make that request over http instead of https? I thought that the platform would always make token requests (especially to ArcGIS Online) via https by default?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 11:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/mapviewer-problems-with-secured-services/m-p/708221#M28</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-07-03T11:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: MapViewer problems with secured services</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/mapviewer-problems-with-secured-services/m-p/708222#M29</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Paul,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is weird.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the request for the WebMap or Layers?&lt;/P&gt;&lt;P&gt;Are of all the layers hosted in ArcGIS Online? Or are there some hosted in ArcGIS Enterprise (Portal or Server)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 20:08:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/mapviewer-problems-with-secured-services/m-p/708222#M29</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2018-07-03T20:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: MapViewer problems with secured services</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/mapviewer-problems-with-secured-services/m-p/708223#M30</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erwin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer your questions: it seems to happen when first attempting to load the web map. All the layers for the ones I was testing are hosted in ArcGIS Online.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some more info though that might help. If I sign out, then sign back in, the web map loads fine. It's only if I then close the app and re-open it, and then try to open the web map that I get the error message.&lt;/P&gt;&lt;P&gt;So it seems to be something to do with the code and workflow around re-opening the app and using the refresh token to sign back into ArcGIS Online.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you have a go and see if you can replicate that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 22:38:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/mapviewer-problems-with-secured-services/m-p/708223#M30</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-07-03T22:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: MapViewer problems with secured services</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/mapviewer-problems-with-secured-services/m-p/708224#M31</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm also getting a similar message in another app that is also based off the Map Viewer template. If I am not signed in, then sign in, I can view secure web maps. But if I then close and re-open the app, I get an error message when trying to open any of the same web maps. The error says "client_id not specified".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what's going on there, but when I check Fiddler traffic, the clientid is for some reason "ref.runtimeqtsdk" - not sure how that is happening or whether it's correct or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 04:24:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/mapviewer-problems-with-secured-services/m-p/708224#M31</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-07-04T04:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: MapViewer problems with secured services</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/mapviewer-problems-with-secured-services/m-p/708225#M32</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I have a little bit more information about this issue?&amp;nbsp; So you have a Map Viewer app that has a client id.&amp;nbsp; You are able to log in and access the secured web maps.&amp;nbsp; But once you closed the app and open it and log in again, you are not able to access the same secured web maps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Are you running the Map Viewer on AppStudio Desktop?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; The second time you opened the app, I am assuming you will be logged in automatically?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Are you able to access other secured web maps on the second time you open the app?&lt;/P&gt;&lt;P&gt;4. If you sign out and sign in again, are you still getting the error message&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"client_id not specified"?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3. May I see the error message screenshot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tina&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 22:29:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/mapviewer-problems-with-secured-services/m-p/708225#M32</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-07-23T22:29:35Z</dc:date>
    </item>
  </channel>
</rss>

