<?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 local app with secure webmap: how to skip credentials panel? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/local-app-with-secure-webmap-how-to-skip/m-p/95568#M8732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have registered a local app (generated with Web AppBuilder) containing a secure webmap (shared with a group).&lt;/P&gt;&lt;P&gt;When I access this app directly from a web browser, the app show me the credentials panel. It's normal because the application doesn't know me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when I 'm already connected to my ArcGIS Online account, and that I try to launch this app just by clicking on the app item , I have to enter my credentials again!!! How can I skip this second credentials panel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I just want to have the same behaviour for my local webapp as for an hosted webapp: Once, I'm connected, I don't need to give anymore my credentials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried the arcgis proxy solution but then, credentials are never asked, even if I'm an anonymous user!!! It's not what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2018 14:23:55 GMT</pubDate>
    <dc:creator>MarcLEMAIRE</dc:creator>
    <dc:date>2018-09-13T14:23:55Z</dc:date>
    <item>
      <title>local app with secure webmap: how to skip credentials panel?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/local-app-with-secure-webmap-how-to-skip/m-p/95568#M8732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have registered a local app (generated with Web AppBuilder) containing a secure webmap (shared with a group).&lt;/P&gt;&lt;P&gt;When I access this app directly from a web browser, the app show me the credentials panel. It's normal because the application doesn't know me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when I 'm already connected to my ArcGIS Online account, and that I try to launch this app just by clicking on the app item , I have to enter my credentials again!!! How can I skip this second credentials panel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I just want to have the same behaviour for my local webapp as for an hosted webapp: Once, I'm connected, I don't need to give anymore my credentials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried the arcgis proxy solution but then, credentials are never asked, even if I'm an anonymous user!!! It's not what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/local-app-with-secure-webmap-how-to-skip/m-p/95568#M8732</guid>
      <dc:creator>MarcLEMAIRE</dc:creator>
      <dc:date>2018-09-13T14:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: local app with secure webmap: how to skip credentials panel?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/local-app-with-secure-webmap-how-to-skip/m-p/95569#M8733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could be wrong, but it's my understanding that credentials are based on the originating domain.&amp;nbsp; I think&amp;nbsp;you're not "a&lt;SPAN style="background-color: #ffffff;"&gt;lready connected to my ArcGIS Online account" when running your local app as it&amp;nbsp;doesn't originate from the same domain as the app that generated those credentials (such as arcgis.com).&amp;nbsp; What I normally do in this use case is to use just the base domain when registering app items, so once I've provided my credentials to one of my apps originating from that domain, then the credentials will be used for other apps originating from the same domain.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 18:09:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/local-app-with-secure-webmap-how-to-skip/m-p/95569#M8733</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2018-09-13T18:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: local app with secure webmap: how to skip credentials panel?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/local-app-with-secure-webmap-how-to-skip/m-p/95570#M8734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be clear, here is the workflow of my organization's users:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They&amp;nbsp;authenticate themselves to the AGOL organization then they click on the links to the applications they need for their respective jobs.&lt;/P&gt;&lt;P&gt;They don't know if an app is locally hosted or on AGOL hosted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an app is on AGOL hosted, the app opens normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an app is locally hosted, the app asks to authenticate themselves again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...I don't want this double behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried to just add a base domain to the registration information as you wrote, but It doesn't work better. I still have to give my credentials, and that everytime I try to open the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe could you give me an example of your parameters?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 15:59:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/local-app-with-secure-webmap-how-to-skip/m-p/95570#M8734</guid>
      <dc:creator>MarcLEMAIRE</dc:creator>
      <dc:date>2018-09-17T15:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: local app with secure webmap: how to skip credentials panel?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/local-app-with-secure-webmap-how-to-skip/m-p/95571#M8735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marc, what you describe is the correct behavior; the credentials for apps hosted on arcgis.com can't be used for apps hosted on your own domain.&amp;nbsp; If using OAuth to authenticate, we always make sure to call IdentitiyManager.registerOAuthInfos(...)&amp;nbsp; with the appropriate appid, and then depending on what we need to do we&amp;nbsp;sometimes use a combination of IdentityManager.checkSignInStatus(...) and/or the 'authMode' Portal constructor parameter to help with the sign-in process.&amp;nbsp; Something similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;IdentityManager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;checkSignInStatus&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;portalUrl&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;/*...do other things here...*/&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; myPortal &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Portal&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;portalUrl&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;authMode&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"immediate"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; myPortal&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;load&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;info&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;myPortal&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;user&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; myPortal&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;/*...do other things here...*/&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:38:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/local-app-with-secure-webmap-how-to-skip/m-p/95571#M8735</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-12-10T23:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: local app with secure webmap: how to skip credentials panel?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/local-app-with-secure-webmap-how-to-skip/m-p/95572#M8736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marc,&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default, Identity manage is triggered&amp;nbsp;when the item is not shared publicly in the app created by Developer Edition. However,&amp;nbsp;you can improve the experience by registering your hosted app in the&amp;nbsp;org&amp;nbsp;to use the OAuth. In this way, if you already sign in ArcGIS Online, the hosted app would pop up the OAuth for approval only, no need to fill in the credentials. Hope this helps.&lt;/P&gt;&lt;P&gt;Jianxia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 04:21:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/local-app-with-secure-webmap-how-to-skip/m-p/95572#M8736</guid>
      <dc:creator>Jianxia</dc:creator>
      <dc:date>2018-11-20T04:21:31Z</dc:date>
    </item>
  </channel>
</rss>

