Disabling Sign In Popup

12-23-2022 11:00 AM
Occasional Contributor II

Hi All,

When opening an experience we are getting a popup widow asking us to sign in to ArcGIS Online. Clicking "Okay" then opens up the panel where we can enter in our credentials but we would like to bypass the initial popup.


In Web AppBuilder, we were able to disable the initial sign in panel by editing the ./jimu.js/tokenUtils.js file. On line 17 of the code snippet below, setting the popup parameter to false hides the sign in popup. Is there something similar in the Experience Builder code? 

registerOAuthInfo: function(portalUrl, appId){
      var validParams = portalUrl && typeof portalUrl === 'string' &&
       appId && typeof appId === 'string';
        return null;
      var oAuthInfo = esriNS.id.findOAuthInfo(portalUrl);
        var oauthReturnUrl = window.location.protocol + "//" + window.location.host +
         require.toUrl("jimu") + "/oauth-callback.html";
        //OAuth will lose 'persist' query parameter if set expiration to two weeks exectly.
        oAuthInfo = new OAuthInfo({
          appId: appId,
          expiration: 14 * 24 * 60 - 1,
          portalUrl: portalUrl,
          authNamespace: '/',
          popup: false,
          popupCallbackUrl: oauthReturnUrl
      oAuthInfo.appId = appId;
      return oAuthInfo;


3 Replies
New Contributor III

I don't have a solution but I would also like to know if there is a solution.


0 Kudos
New Contributor III

Hi @MarkEastwood  did you find the solution ?. If so can you please tell me how to disable the login popup. I too facing the same issue

0 Kudos
New Contributor

Any solution on this?

0 Kudos