Reloads/Reinitializes when opening
When our silverlight viewer loads, it initializes, then briefly shows the toolbar map etc, then goes back and initializes again and finally opens. Sometimes this can take a while. Is there a way to stop this and just have it initialize once? Is it double-authenticating?
Silverlight Viewer 2.2 Essentials 4.1.1
Security - windows integrated, all users have access and the domain is on the internet.
David
-
I discovered this yesterday, please let us know if you find a solution.
Louie
0 -
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, - Alejandro0 -
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:
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.
0 -
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 -
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 -
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 -
Alejandro,
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 -
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 -
I dont' seem to have this folder:
http://myserver/geocortex/essentials/rest/security/
Am I missing something?
Paul
0 -
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 -
Alejandro,
Yes - I did get that error. I guess I am trying to figure out why my "Test" link doesn't work...
Paul
0 -
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 -
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 -
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 -
Hi, is there any updated information on this or are we stuck with this behavior? Thanks! 0 -
Hi Eric, 0 -
Thanks for the info Daniel, I'll review the instructions. 0 -
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) 0
Please sign in to leave a comment.
Comments
18 comments