From: David W. <dwi...@op...> - 2011-09-19 15:01:29
|
Not all browsers support including credentials in the URL like this - I know for sure that Internet Explorer does not, and I'm not sure about others. That's just as well though - the scheme you are proposing exposes your password to anyone who can use the 'view source' feature in his web browser. If you can make a request to a secured endpoint (such as SERVER/geoserver/rest/) then GeoServer should send back a security challenge and prompt the user to enter his credentials. Configuring your app to do that before setting up the OpenLayers map should make it so that the secured layers show up properly - but only after the user enters the proper password. -- David Winslow OpenGeo - http://opengeo.org/ On Mon, Sep 12, 2011 at 1:33 PM, Bram van Rooij <bra...@ro...>wrote: > Hi,**** > > ** ** > > I have a simple question (at least, I think it is). I have a geoserver set > up, and I want to secure some layers using http authentication.**** > > ** ** > > What I thought should work is:**** > > var ol_wms = new OpenLayers.Layer.WMS( "WMS.Secured", > "http://XXXX:XXXX@SERVER/geoserver/wms", {LAYERS: > 'SEC_LAYER'} );**** > > ** ** > > But all I'm getting is an code="LayerNotDefined" Could not find....**** > > ** ** > > What am I'm doing wrong?? If anyone could help me out I'd be very > gratefull!**** > > ** ** > > Thanks in advance, regards,**** > > Bram**** > > ** ** > > ** ** > > > __________ Informatie van ESET NOD32 Antivirus, versie van database > viruskenmerken 6458 (20110912) __________ > > Het bericht is gecontroleerd door ESET NOD32 Antivirus. > > http://www.eset.com > > > ------------------------------------------------------------------------------ > Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many mid-market businesses > from deploying virtual desktops? How do next-generation virtual desktops > provide companies an easier-to-deploy, easier-to-manage and more affordable > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > _______________________________________________ > Geoserver-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > |