[mapguide-users] MGE 2010: fusion pre-authentication (autologin) no longer works

Jani Forssell Jani.Forssell at vianova.fi
Mon Apr 6 08:54:48 EDT 2009


Hi,

We're using the standard Fusion authetication code that opens a
connection to the MG site and creates a session and then passes it to
the fusion viewer via the "Session" query parameter. It used to work
with MGE 2009, but no longer works with MGE 2010. At least with Firefox
3.0.8 I get a login dialog from MapGuide. With IE8 and Chrome I don't. 

Here's the code:
try
{
   MapGuideApi.MgInitializeWebTier(@"C:\Program
Files\Autodesk\MapGuideEnterprise2010\WebServerExtensions\www\webconfig.
ini");
   MgUserInformation userInfo = new MgUserInformation(defaultUser,
defaultPassword);
   MgSite site = new MgSite();
   site.Open(userInfo);
   sessionId = site.CreateSession();
 
Response.Redirect("../fusion/templates/mapguide/slate/index.html?Applica
tionDefinition=" + webLayout + "&Session=" + sessionId);
}
catch (Exception e)
{
   Response.Write(e.Message);
}

An example URL generated is:

http://server/mapguide2010/fusion/templates/mapguide/slate/index.html?Ap
plicationDefinition=Library://Samples/Sheboygan/Layouts/Flexiblegan.Appl
icationDefinition&Session=f7b8db74-04e7-102c-8000-000c299e04c9_en_3EEC8C
A00AF20AF10AF0

Any ideas on how to get this working with MGE 2010?

Regards,
Jani Forssell


More information about the mapguide-users mailing list