PDA

View Full Version : Bypass the login request



teodor.pop
2009-01-25, 09:46 AM
I am using a local installation to test/develop my new MapGuide application.

Finally today I managed to find a solution on how to activate Windows Authentication in IIS7 (I am running MapGuide 2009 [both Enterprise and Studio] on a Windows Vista Bussiness HP laptop). It seems that this was not enough in order to get rid of the User login request, that pops-up whenever I am opening a MapGuide session (either directly from the browser or through MapGuide Studio's "View in browser" option).

Do I need to change other settings or change some permissions at the server level?

JeremiahM
2009-02-22, 09:23 AM
If you are using a Basic Layout (not Flexible) add this to the end of your URL:

&USERNAME=”username”&PASSWORD=”password”

Make a shortcut and add that, works great for an Intranet.

For the internet, you will need to pack it up in .asp, .php, or java.

If you are using a Flexible layout you have to add code, here is a link to a thread on this at OSGEO:

http://n2.nabble.com/Query-String-Auto-Login-with-Fusion-or-Flexible-Layouts-td1817217.html#a1817217

Hope this helps,

Jeremiah

jumpinjackie
2009-05-21, 02:01 AM
Alternatively, you could have a loader page that generates a session id server-side using the MapGuide API and then redirects to the viewer url adding in:

&SESSION=yourgeneratedsessionid

- Jackie