Hi
We have set up GeoServer to use HTTP request header proxy
authentication as described in this tutorial
http://docs.geoserver.org/stable/en/user/security/tutorials/httpheaderpr
oxy/index.html.
To authenticate from an OpenLayers map we have a Python script that
grabs a user's login from the web server and adds that as a header when
requesting the capabilities document.
This works great and users can add only layers that they have access to.
Once the layer(s) are added any subsequent requests (GetMap,
GetLegendGraphic, GetFeatureInfo) are sent directly to GeoServer with no
request header added.
Everything seems to work fine (Layers shows up as you pan/zoom, legend
is populated) apart from when making a GetFeatureInfo request when we
get back the following error and no popup as expected.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://geoserver:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.d
td"> <ServiceExceptionReport version="1.1.1" > <ServiceException
code="LayerNotDefined">
Could not find layer test:authentication_layer
</ServiceException></ServiceExceptionReport>
Is this expected behaviour? I was expecting either all requests to fail
after the initial GetCapabilities or that once authenticated geoserver
would 'remember' the header and everything would work.
Any help would be great.
Thanks
Tom
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users