[mapguide-users] Avoiding Authentication Prompt on Startup

Chris Gountanis cgountanis at mpower-tech.com
Mon Mar 26 12:44:02 EDT 2007


You need to allow Anon access within IIS to not get the Windows Auth box
popping up on you not to be confused with MapGuides Auth box which it seems
you might have covered already.

 

 

Chris 

 

 

  _____  

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Buscher, Shane
Sent: Monday, March 26, 2007 11:22 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Avoiding Authentication Prompt on Startup

 

I can't seem to find a way to avoid users being prompted to authenticate
when they open up a MapGuide site for the first time.  After that, they
aren't prompted again.  You can cancel out of the authentication and bypass
it, but this isn't very elegant.  I'm using the DWF Viewer with .NET/iis 6,
and have the MapGuide virtual directories set to windows authentication
(anonymous access unchecked).  I am authenticating on my default page with
the code snippets below, then passing the session Id and web Layout to the
dwf viewer.  If anyone has a solution/workaround, I'd much appreciate it.

Dim site As New MgSite()

Dim userInfo As New MgUserInformation(AppSettings("mgLogin"), _

      AppSettings("mgPassword"))

site.Open(userInfo)

Dim SessionId As String = site.CreateSession()

Dim WebLayout As String = AppSettings("webLayout")

.

.

.

<iframe id="ViewerFrame" width="100%" height="100%" frameborder="0"
src="/mapguide/mapviewernet/dwfviewer.aspx?SESSION=<%= SessionId
%>&WEBLAYOUT=<%= webLayout %>" >

    </iframe>

Regards,

Shane

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070326/7be2f52d/attachment-0001.html


More information about the mapguide-users mailing list