4.19 oAuth repeated log in.

428
0
05-27-2021 10:08 AM
MikeGarcia
New Contributor II

I am not sure if I am missing something new in the 4.19 API. 
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.  

Using 4.19, I am continually asked to sign-in.  
Once logged-in everything works, but it is inefficient and super annoying to have to log-in after every reload.  

I have an Enterprise 10.8.1 Portal, using secure feature services in the app.  

SSO is working for the portal, and all of my 4.18, and 3.25 apps.  

// 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();

 

0 Kudos
0 Replies