Skip to main content

Is it possible to add login credentials in a URL parameter?

Comments

4 comments

  • Permanently deleted user
    Pushed the button too soon...  This relates to the Saving of projects now requiring a login to use.  I would like to create a generic department login, then create a URL (workflow?) that would use that login.  Further, it would be nice to open the saved project also from a URL parameter.
    0
  • Permanently deleted user
    Hi Mike,

     

    I'm not sure if you can pass login credentials via a URL, but one thing you could potentially do (if this would be an acceptable workaround) is enable Windows security on that site for your department, and have them log in using an encoded URL that points to the Windows Integrated security provider, something like this:

     

    http://dbriggs-ess13/Geocortex/Essentials/4.5.1/REST/security/signin?token_type=fragment&app=http%3a%2f%2fdbriggs-ess13%2fHtml5Viewer261451%2fIndex.html%3fviewer%3dCharlotte451.Charlotte261&idp_name=AD+AUTHORITY

     

    The nice thing about this, is that you could still have anonymous guest access to the site, and have those users log in using the default URL (and they would not be prompted to sign in).  If you have SSO enabled in your environment, this would be transparent to your users as well.  

     

    I hope this helps!  

     

    Thanks,

     

    Danny
    0
  • Permanently deleted user
    Danny, thanks for the quick response!

     

    I think this is a bit over my head...  Would that URL then be something I could let them post on their department site?  Still a major drawback that I can't expand/close layer groups by layer theme.  I'm hoping I can create saved versions that provide something more unique for particular subgroups.  Did not want to do Active Directory and SSO at this point (unless that is something doable in a couple of hours with your guys help?).

     

    Also, is there a way to open a saved project directly from a URL?
    0
  • Permanently deleted user
    Hi Mike,

     

    Yes, you could then post that URL on their department site.  When you refer to expanding/closing layer groups, am I correct in assuming that you were previously doing this from the launch URL? (If so I think that should still work, although I haven't tried it) You would just need to encode the URL you are currently using, and put it in the app= section.  So for example, if the URL you were using to launch your viewer was: http://dbriggs-ess13/Html5Viewer261451/Index.html?viewer=Charlotte451.Charlotte261?runworkflow=test You could run it through an encoder like this one:

     

    http://meyerweb.com/eric/tools/dencoder/

     

    And get an output like this: http%3A%2F%2Fdbriggs-ess13%2FHtml5Viewer261451%2FIndex.html%3Fviewer%3DCharlotte451.Charlotte261%3Frunworkflow%3Dtest Then you would make your launch URL that goes directly to the AD provider look like this: http://dbriggs-ess13/Geocortex/Essentials/4.5.1/REST/security/signin?token_type=fragment&app=http%3A%2F%2Fdbriggs-ess13%2FHtml5Viewer261451%2FIndex.html%3Fviewer%3DCharlotte451.Charlotte261%3Frunworkflow%3Dtest&idp_name=AD+AUTHORITY In regards to your question about configuring AD authentication and SSO, it usually doesn't take too long to set up (although each environment is different, so it's hard to be definitive).  Assuming your server is joined to the same domain where your users reside (IE not in a separate DMZ domain), it should only take about an hour to set up.  

     

    Finally, you can open a project from a URL by appending:

     

    ?project=projectid 

     

    To the viewer URL.

     

    I hope that helps!

     

    Thanks,

     

    Danny
    0

Please sign in to leave a comment.