<?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 Wrong appId value in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-appid-value/m-p/1028270#M71812</link>
    <description>&lt;P&gt;I have created a Web Mapping Javascript Application in Portal that points to a Javascript Application which runs on an different VM&amp;nbsp; than ArcGIS Enterprise (Esri Portal and Server are on Windows Machines, VM is on Linux - all in the same Azure DMZ). We are using a NGINX webserver on the Linux VM for publishing the JS App - portal, server and the Nginx are behind the same Gateway - all in the same domain.&lt;/P&gt;&lt;P&gt;I am using the&amp;nbsp;IdentityManager to register the OAuthInfos, then I check if the user is already signed in using the checkSignInStatus Method. If not credentials are requested using getCredentials. When calling the self method "&lt;SPAN&gt;&amp;lt;our domain&amp;gt;/portal/sharing/rest/community/self?f=json&amp;amp;token=&amp;lt;the token&amp;gt;"&lt;/SPAN&gt; I can see the correct appId in the appInfo property which is the same I used for the OAuthInfos.&lt;/P&gt;&lt;P&gt;This works fine as long as I am not logged in the portal and I am directly opening the Web App in the browser (pointing to the url). But when I am already logged into the portal and I open the application from the Web Mapping Javascript Application Item, my JS App wont open the OAuth Dialog again (which is correct, because I am already logged in from the portal) - but when I call "&lt;SPAN&gt;&amp;lt;our domain&amp;gt;/portal/sharing/rest/community/self?f=json&amp;amp;token=&amp;lt;the token&amp;gt;" now, the appId value in the appInfo Property is "arcgisonline".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I register my JS App - create a new token?&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2021 21:57:54 GMT</pubDate>
    <dc:creator>Bernd_Loigge</dc:creator>
    <dc:date>2021-02-18T21:57:54Z</dc:date>
    <item>
      <title>Wrong appId value</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-appid-value/m-p/1028270#M71812</link>
      <description>&lt;P&gt;I have created a Web Mapping Javascript Application in Portal that points to a Javascript Application which runs on an different VM&amp;nbsp; than ArcGIS Enterprise (Esri Portal and Server are on Windows Machines, VM is on Linux - all in the same Azure DMZ). We are using a NGINX webserver on the Linux VM for publishing the JS App - portal, server and the Nginx are behind the same Gateway - all in the same domain.&lt;/P&gt;&lt;P&gt;I am using the&amp;nbsp;IdentityManager to register the OAuthInfos, then I check if the user is already signed in using the checkSignInStatus Method. If not credentials are requested using getCredentials. When calling the self method "&lt;SPAN&gt;&amp;lt;our domain&amp;gt;/portal/sharing/rest/community/self?f=json&amp;amp;token=&amp;lt;the token&amp;gt;"&lt;/SPAN&gt; I can see the correct appId in the appInfo property which is the same I used for the OAuthInfos.&lt;/P&gt;&lt;P&gt;This works fine as long as I am not logged in the portal and I am directly opening the Web App in the browser (pointing to the url). But when I am already logged into the portal and I open the application from the Web Mapping Javascript Application Item, my JS App wont open the OAuth Dialog again (which is correct, because I am already logged in from the portal) - but when I call "&lt;SPAN&gt;&amp;lt;our domain&amp;gt;/portal/sharing/rest/community/self?f=json&amp;amp;token=&amp;lt;the token&amp;gt;" now, the appId value in the appInfo Property is "arcgisonline".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I register my JS App - create a new token?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 21:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-appid-value/m-p/1028270#M71812</guid>
      <dc:creator>Bernd_Loigge</dc:creator>
      <dc:date>2021-02-18T21:57:54Z</dc:date>
    </item>
  </channel>
</rss>

