[mapguide-users] MapLayout Authorization demand

Jason Birch Jason.Birch at nanaimo.ca
Fri Mar 31 13:30:53 EST 2006


Oh.  I totally missed that you were loading the whole layout.  I do not
get prompted in any of the three browsers with that, but Opera is
totally broken; doesn't show any images at all, including legend images.
That's OK; it's not a supported browser :)

What were the settings before you turned on integrated auth?  Anonymous
access?

Jason 

-----Original Message-----
From: Andy Morsell [mailto:amorsell at spatialgis.com] 
Sent: Friday, March 31, 2006 10:03
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] MapLayout Authorization demand

Did some more investigation on this since Jason did not see the problem
in IE.  These pages work fine:
http://localhost/mapguide/mapviewernet/ajaxviewer.aspx?WEBLAYOUT=Library
%3a%
2f%2fSamples%2fSheboygan%2fLayouts%2fSheboyganAsp.WebLayout&USERNAME=Ano
nymo
us

http://localhost/mapguide/mapviewerphp/ajaxviewer.php?WEBLAYOUT=Library%
3a%2
f%2fSamples%2fSheboygan%2fLayouts%2fSheboyganAsp.WebLayout&USERNAME=Anon
ymou
s

But, when going through the configured mapviewerajax virtual directory
using the .NET web extension, I am prompted for a login.  Again, I can
leave it blank and say OK or Cancel and it opens fine.
http://localhost/mapguide/mapviewerajax/?WEBLAYOUT=Library%3a%2f%2fSampl
es%2
fSheboygan%2fLayouts%2fSheboyganAsp.WebLayout&USERNAME=Anonymous

http://data.mapguide.com/mapguide/mapviewerajax/?WEBLAYOUT=Library://Sam
ples
/Sheboygan/Layouts/SheboyganAsp.WebLayout&USERNAME=Anonymous

I changed the security settings on the mapviewerajax virtual directory
in IIS to use Integrated Windows Authentication and am now not prompted
on a Windows XP machine, but still am on a Windows 2003 Server.  It's
definitely an IIS / .NET web extensions issue.


Andy 

-----Original Message-----
From: Jason Birch [mailto:Jason.Birch at nanaimo.ca]
Sent: Friday, March 31, 2006 9:13 AM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] MapLayout Authorization demand

You have downloaded the dotnetviewer sample from here?

https://mapguide.osgeo.org/files/documents/12/17/dotnetviewersample.zip

It basically initiates a session with a fixed userid and password:

     MapGuideApi.InitializeSockets();
     InitializeWebTier();
     MgUserInformation userInfo = new MgUserInformation("Anonymous",
"");
     MgSite site = new MgSite();
     site.Open(userInfo);
     sessionId = site.CreateSession();
     MapGuideApi.TerminateSockets();

And then opens the ajax viewer in a frame:

    <frame src="/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=<%=
sessionId %>&WEBLAYOUT=<%= webLayout %>" name="ViewerFrame">

I agree that it's risky to embed a password in the url, but I don't mind
embedding the username of the "Anonymous" user in the URL.  Unlike Andy,
I don't get prompted for authentication in IE.  I wonder what the
difference is.  I have tried with &USERNAME=Anonymous and with
&USERNAME=Anonymous&PASSWORD=  and neither prompts in IE, Opera, or
Firefox.

Jason
 

-----Original Message-----
From: Brian Flood [mailto:BFLOOD at SPATIALDATALOGIC.COM]
Sent: Friday, March 31, 2006 09:01
To: 'users at mapguide.osgeo.org'
Subject: RE: [mapguide-users] MapLayout Authorization demand

thanks Andy, how are the OSMG demos working, I don't think I was
prompted when I viewed them?  Is there a walkthrough for using the .Net
viewers from another hosting page (like in the php example demos)

I was following the parameter discussions from yesterday, interesting
indeed. I'm not sure I like embedding user/pwd in urls though. 

cheers
brian

-----Original Message-----
From: Andy Morsell [mailto:amorsell at spatialgis.com]
Sent: Friday, March 31, 2006 11:54 AM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] MapLayout Authorization demand

I don't think you're missing anything.  The only way I've seen to open a
web layout without user login prompt is to embed it in a web page.  In
that page, you have to programmatically create a session based on a
valid user and pass the session at the URL.  The example applications
show this.
 
There was some discussion on GETMAP request parameters yesterday.  I
just tried adding &USERNAME=Anonymous to the URL.  In Internet Explorer,
I still get the user login dialog, but can just click on OK or Cancel
without entering anything and it opens fine.  With Firefox, I am not
prompted for login and the layout opens fine.

Andy Morsell, P.E. 
Spatial Integrators, Inc. 
http://www.SpatialGIS.com 

________________________________

From: Brian Flood [mailto:BFLOOD at SPATIALDATALOGIC.COM]
Sent: Friday, March 31, 2006 8:34 AM
To: 'users at mapguide.osgeo.org'
Subject: [mapguide-users] MapLayout Authorization demand



When I create a simple Map Layout and try to access it from a browser, I
always get the login screen. I thought if "Everyone" was assigned read
access to it, there would be no logon request. Again, I'm probably
missing the obvious...

 

http://12.144.53.43/mapguide/mapviewerajax/?WEBLAYOUT=Library%3a%2f%2fMP
Adva
ncedMap.WebLayout

 

 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org






More information about the Mapguide-users mailing list