Skip to main content

Security - Not prompting for login

Comments

6 comments

  • Permanently deleted user

    Hi Marcus,

    Are you using a 2.0 viewer, either HTML5 or Silverlight?

    The 1.x viewers won't know how to handle the new security model, and will display an error instead of redirecting to the login prompt.

    Regards,

    -Malcolm

    0
  • Marcus Bodig

    That is probably the issue.  I was hoping that I could use the older viewers as there is some custom code in some of them that breaks when we upgrade.

    0
  • Jostein Svegården

    I have some of the same issue. I have just installed GE 4.1.0, and after reading Malcolm's advice, i also installed GVS 2.2. After installing the viewer, I get to the login-dialog. But after logging in with a valid user, I get Access Denied. The site is restricted. And I get the message "The current user cannot access the desired resource". In Essentials 3.x, I always got this message unless I added

    <Allow WellKnownRole="Guest">

     

          <Authenticate />

     

        </Allow>

    to the site.xml. Now, it seems that the security system has changed, and that this workaround does not work anymore

    Any help would be highly appreciated!

    0
  • Permanently deleted user

    Sounds like the same issue that I am getting. I have not set up security before so maybe it is that I am still trying to figure it out. I am using GE 4.1, HTML5 2.2, and Geocortex Identity Server credentials.  Security is set to only allow a certain role access, so when testing and I log in with valid credentials but invalid role I get the image shown below.  There is no way to sign out short of clearing cache and starting again.  I tried to add some code to catch this and automatically sign out the user.  The event was caught, but the command didn't work: 

    viewer.eventRegistry.event("AuthenticationFailedEvent").subscribe(this, function () {

     

        viewer.commandRegistry.command("SignOut").execute();

     

    })

    /customer/servlet/servlet.FileDownload?file=00P6000000em1EhEAI  

    Also, when I am able to login, then sign out.  I brings me to a page stating: You've signed out instead of back to asking for sign in credentials.  Any insight would be greatly appreciated.

    0
  • Permanently deleted user

    Possibly Jostein, the providers are not all enabled on your security tab in GE Manager. Double check that they are all ticked on. (just one thing to try)

    0
  • Jostein Svegården

    Yes, the providers are enabled. But thank you Matt. I have spent almost an entire day with the Norwegian Geocortex distributor, but they could not solve the problem. It could have something to do with our proxy server setup and/or SSL. We have to use https to get through the proxy server, while SSL is not enabled on our web server or ArcGIS Server.

    We have rolled our system back to 3.15, and will continue to test with 4.1 to try to solve this. Any ideas are appreciated.

    0

Please sign in to leave a comment.