Hi

I'm trying to load a secured WMS layer from GeoServer, but seem not possible
to send credentials when loading the layer in the map.

I'm trying with this code to create the layer:

var ol_wms = new OpenLayers.Layer.WMS( "WMS.Secured",
                "http://SERVER/geoserver/wms?";, {layers: 'SEC_LAYER', user:
'XXXX', password: 'XXXX'} );


But I get an empty image. Seem the user/password parameters are not valid to
manage about the authentication for these layers.

I didn't find many information about how getting secured GeoServer layers
working in OpenLayers, but hope that is possible. If you can point me in the
right direction would be very grateful.

Regards,
Jose GarcĂ­a
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to