<?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 4.19 oAuth repeated log in. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-19-oauth-repeated-log-in/m-p/1062430#M73304</link>
    <description>&lt;P&gt;I am not sure if I am missing something new in the 4.19 API.&amp;nbsp;&lt;BR /&gt;In trying to reuse my 4.18 oAuth code in a new 4.19 app, I have found replacing the reference from 4.18 to 4.19 has cause some unexpected results.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using 4.19, I am continually asked to sign-in.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Once logged-in everything works, but it is inefficient and super annoying to have to log-in after every reload.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an Enterprise 10.8.1 Portal, using secure feature services in the app.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SSO is working for the portal, and all of my 4.18, and 3.25 apps.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Set Portal URL in esriConfig. 
esriConfig.portalUrl = "https://MYENTERPRISE/portal";

// Set AppId and enable OAuth
var oAuthInfo = new OAuthInfo({
  appId: "myRegisteredAppId",
  popup: false,
});
esriId.registerOAuthInfos([oAuthInfo]);

// Intialize a portal instance and load it
var portal = new Portal();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 17:08:19 GMT</pubDate>
    <dc:creator>MikeGarcia</dc:creator>
    <dc:date>2021-05-27T17:08:19Z</dc:date>
    <item>
      <title>4.19 oAuth repeated log in.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-19-oauth-repeated-log-in/m-p/1062430#M73304</link>
      <description>&lt;P&gt;I am not sure if I am missing something new in the 4.19 API.&amp;nbsp;&lt;BR /&gt;In trying to reuse my 4.18 oAuth code in a new 4.19 app, I have found replacing the reference from 4.18 to 4.19 has cause some unexpected results.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using 4.19, I am continually asked to sign-in.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Once logged-in everything works, but it is inefficient and super annoying to have to log-in after every reload.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an Enterprise 10.8.1 Portal, using secure feature services in the app.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SSO is working for the portal, and all of my 4.18, and 3.25 apps.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Set Portal URL in esriConfig. 
esriConfig.portalUrl = "https://MYENTERPRISE/portal";

// Set AppId and enable OAuth
var oAuthInfo = new OAuthInfo({
  appId: "myRegisteredAppId",
  popup: false,
});
esriId.registerOAuthInfos([oAuthInfo]);

// Intialize a portal instance and load it
var portal = new Portal();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 17:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-19-oauth-repeated-log-in/m-p/1062430#M73304</guid>
      <dc:creator>MikeGarcia</dc:creator>
      <dc:date>2021-05-27T17:08:19Z</dc:date>
    </item>
  </channel>
</rss>

