Skip to main content

Reloads/Reinitializes when opening

Comments

18 comments

  • Permanently deleted user

    I discovered this yesterday, please let us know if you find a solution.

    See --> https://support.geocortex.com/EssentialsGSCForum?sub-nav=forum&main-nav=Essentials&id=906600000000ApGAAU

    Louie

    0
  • Permanently deleted user

    Hi Louie and David, I'm adding here as well my reply to the other post:

    The site loading twice when security is enable is the expected behavior by default. What happens is that the viewer loads the first time and it finds that the site is secured and no anonymous authentication is enabled, so it redirects the user to the sing-in endpoint. Once the user has signed-in (using any provider) it's redirected back to the viewer, so it has to load again. This is why you see the viewer loading twice. It is possible to build a launch link for the viewer that will take the user to the sign-in endpoint first, authenticate with one particular provider and then redirect to the viewer. In this case it will load only once. The URL you need to use will look like:   [ESSENTIALS]/security/signIn?app=[VIEWER]&token_type=fragment&idp=AD+AUTHORITY  where [ESSENTIALS] is the URL to Essentials, e.g. https://myserver.com/Geocortex/Essentials/REST [VIEWER] is the complete launch URL for the viewer   Hope it helps,   - Alejandro
    0
  • Permanently deleted user

    Let me put it this way... Holy Smolly that is one long url..

    (http://myserver/geocortex/essentials/rest/security/signIn?app=http://giswebdev02/SilverlightViewer/Viewer.html?ViewerConfig=http://giswebdev02/Geocortex/Essentials/REST/sites/Ag_Map/viewers/Ag_Map/virtualdirectory/Config/Viewer.xml&token_type=fragment&idp=AD+AUTHORITY) http://myserver/geocortex/essentials/rest/security/signIn?app=http://myserver/SilverlightViewer/Viewer.html?ViewerConfig=http://myserver/Geocortex/Essentials/REST/sites/Ag_Map/viewers/Ag_Map/virtualdirectory/Config/Viewer.xml&token_type=fragment&idp=AD+AUTHORITY

    It is good that we can use the shortcut version of:

     

    http://myserver/geocortex/essentials/rest/security/signIn?app=/gcmaps/?Viewer=Ag_Map&token_type=fragment&idp=AD+AUTHORITY

    Still this is a problem!   We have links published all over the place that are something like http://myserver/gcmaps/?Viewer=Ag_Map, we do not want to have to hunt all of those down and change them.  There has got to be a better way.  Maybe the viewer page could be augmented to handle the security.  This is a bit more complex than it used to be, can we please get the short URLs working without the double load?

    Thank You.

     

    Louie
    0
  • David Major

    Thanks Alejandro worked for me but I agree that is insanely long. We only have it posted in one spot plus I'm sure there are desktop shortcuts and bookmarks out there. But that one link, in our Intranet SharePoint links library, only supports up to 255. Will have to find another way to post the link maybe tinyurl or a login script to put the link on the desktop...

    However no one has complained about it taking too long to load, just me. Still beats firing up ArcMap, loading a big mxd with a million layers, then launching a bulky add-in just to find property information.

    David

    0
  • Permanently deleted user

    Note that you will get the double loading wierdness if you refresh the webpage.  Even though it only takes a few moments to do the second load, it looks like there is a problem with the application.

    Louie

    0
  • Permanently deleted user

    Thanks for your comments, I'll create an improvement request for this. Regarding the site loading twice when you refresh the page, it will happen since it's the same process. The viewer loads, redirects the user to the login endpoint and then since the browser has the credentials stored the login happens automatically and it's redirected back to the viewer.

    - Alejandro

    0
  • Permanently deleted user

    Alejandro,

     

        Today I discovered that the additional parameters such as the attributeSearch are lost with this new security pass.  Shortly we will be going to production with the new viewer/essentials and I expect to hear complaints about the double loading.

    Here is an example of a url that fails!  The following link will not double load however it loses the attributeSearch.

    http://myserver/geocortex/essentials/rest/security/signIn?app=/gcmaps/?Viewer=AR_Map&attributeSearch=parcels,ASMT,001011001000&token_type=fragment&idp=AD+AUTHORITY

    Louie

    0
  • Permanently deleted user

    Hi Louie,

    In this case you should encode the viewer URL including the URL parameters. In your example it will look like:

    http://myserver/geocortex/essentials/rest/security/signIn?app=%2Fgcmaps%2F%3FViewer%3DAR_Map%26attributeSearch%3Dparcels%2CASMT%2C001011001000&token_type=fragment&idp=AD+AUTHORITY

    I've just tested this in Essentials 4.1.3 / Silverlight 2.2.1 and worked fine.

    -Alejandro

    0
  • Permanently deleted user

    I dont' seem to have this folder:

    http://myserver/geocortex/essentials/rest/security/

    Am I missing something?

    Paul

    0
  • Permanently deleted user
    Hi Paul,   What happens if you browse to "http://myserver/geocortex/essentials/rest/security/signIn"? Do you receive any errors from the Application? (you should be able to authenticate and then you'll get an error message saying that "The Sign In or Sign Out operation was successful, but no application was given.", which is fine if you browsed directly to the signIn endpoint). -Alejandro
    0
  • Permanently deleted user

    Alejandro,

    Yes - I did get that error.  I guess I am trying to figure out why my "Test" link doesn't work...

     

     

     

    <LaunchButtonContent Value="Launch" /> <!-- Sets the text of the Launch button -->

     

      <ViewerConfigs>

     

        <ViewerConfig Id="Launch" Uri="Launch/Viewer.xml" Hidden="true" />

     

        <ViewerConfig Id="Wellington County" Uri="http://myserver/Geocortex/Essentials/REST/sites/Wellington_County/viewers/WellingtonCountySVL/virtualdirectory/Config/Viewer.xml" />

     

        <ViewerConfig Id="Parks and Trails" Uri="http://myserver/Geocortex/Essentials/REST/sites/Parks_and_Trails/viewers/TrailParks_SVL2/virtualdirectory/Config/Viewer.xml" />

     

        <ViewerConfig Id="Test" Uri="http://myserver/Geocortex/Essentials/REST/security/signIn?app=http://myserver/SilverlightViewer_2_0/Viewer.html&ViewerConfig=http://myserver/Geocortex/Essentials/REST/sites/Wellington_County/viewers/WellingtonCountySVL/virtualdirectory/Config/Viewer.xml&token_type=fragment&idp=AD+AUTHORITY" />

     

      </ViewerConfigs>

     

    </Settings>

    Paul

    0
  • Permanently deleted user
    Hi Paul,   I don't think you'll be able to use the launch page with this, since in the URI parameter you have to specify the path to the viewer.xml (like in the "Wellintong County" one, which is specified like Uri="http://myserver/Geocortex/Essentials/REST/sites/Wellington_County/viewers/WellingtonCountySVL/virtualdirectory/Config/Viewer.xml") and then the viewer will launch it like: http://myserver/SilverlightViewer_2_0/Viewer.html&ViewerConfig=http://myserver/Geocortex/Essentials/REST/sites/Wellington_County/viewers/WellingtonCountySVL/virtualdirectory/Config/Viewer.xml In your case you are looking to launch the REST sign-in page, and pass the viewer URL as a parameter, so it will not work.   -Alejandro
    0
  • Permanently deleted user

    So, how do I get rid of this double load then?  I know it is a legit process and is hitting the AD, but to our users it looks like the site is glitchy and want it fixed.

    0
  • Permanently deleted user
    Hi Paul,   Currently it is not possible to do it with the Silverlight viewer launch page that comes out of the box with the viewer. We will create an improvement request for this to be added in a future release and add you as a stakeholder. Unfortunately I don't think we can do a workaround for this at this point in the viewer.Alternatively you can create a custom launch page that will present the user the launch links and launch the sign-in page with the appropriate parameters.   -Alejandro
    0
  • Permanently deleted user
    Hi, is there any updated information on this or are we stuck with this behavior?  Thanks!
    0
  • Permanently deleted user
    Hi Eric,

     

    The double load times are still the expected behaviour in this case.  If you are referring to the comment from Alejandro above, the fix for the launch page was implemented in GVS 2.4, and you can find instructions for configuring it in section 10.3.3 of the GVS Admin guide.  

     

    I hope this helps!

     

    Thanks,

     

    Danny
    0
  • Permanently deleted user
    Thanks for the info Daniel, I'll review the instructions.
    0
  • Permanently deleted user
    This did the trick to stop the double load for me. Add the following to the ViewerSettings.json.js (it's in the HTML viewer follder)

     

    {

     

      "viewerSettings": [

     

     {

     

      "id": "test",

     

      "url": "<serverName>/Geocortex/Essentials/REST/sites/<viewername>/viewers/HTML5_26/virtualdirectory/Resources/Config/Default/",

     

      "securityUrl": "<serverName>/Geocortex/Essentials/REST/security/signin?token_type=fragment&app=<serverName>/Html5Viewer_26/?viewer=<viewername>&idp_name=AD+AUTHORITY"

     

     }

     

      ],

     

      "endpoints": [

     

        {

     

          "name": "Default",

     

          "externalUrl": "/Geocortex/Essentials/REST/viewers/"

     

        }

     

      ]

     

     

    If you have non AD security the parameters are in the doco look for URL Parameters Reference

     

    Also, strangely I had to set the default config in the index.html to my site as if authentication failed it went to the default geocortex site and not my site??? Anyway here's the config in the index.html

     

    var viewerConfig = {

     

     "configurations": {

     

      "default": "<serverName>/Geocortex/Essentials/REST/sites/<viewername>/viewers/HTML5_26/virtualdirectory/Resources/Config/Default/" + shellName + ".json.js"

     

      //"test": "<serverName>/Geocortex/Essentials/REST/sites/<viewername>/viewers/HTML5_26/virtualdirectory/Resources/Config/Default/" + shellName + ".json.js"

     

     },

     

                    "viewerConfigUri": null

     

    };
    0

Please sign in to leave a comment.