PROXY V2 : authentication and policy configuration

Added by ERTZ Olivier over 8 years ago

Dear all,
I'm trying to relay a geoserver wms with a configuration applying specific policy access rules. Below is my simple policy file :

<?xml version="1.0" encoding="UTF-8"?>
  <Policy Id="testPolicy" ConfigId="localwms">
    <Servers All="false">
        <Layers All="false">
    <Subjects All="true">
    <Operations All="true"/>

As you can see, it's a wide open access for all subjects allowing all operations, and I get a nice capabilities file when requesting http://localhost:8080/proxy/ogc/localwms?request=GetCapabilities (even without giving any authentification Joomla user/passwd, is this normal by the way ?)

Now, let's say I reduce the access by allowing only one Joomla user :

    <Subjects All="false">

BUT I'm still able to get the capabilities file without any authentication (I shouldn't) !

Let's now restart my tomcat6 and retry the GetCapabilities ... now I get : org.easysdi.proxy.exception.PolicyNotFoundException: No policy found. Ok, restarting the server may have refresh something and now it is no more a wide open access.

BUT when doing a request with an authentication corresponding to my only allowed user (http://olivier:passwd@localhost:8080/proxy/ogc/localwms?request=GetCapabilities), it is the same, No policy found (I should have access with this user).

In conclusion there is something wrong here.
Does someone face the same problem and/or can someone help ?

Notice :
  • I use Apache Tomcat 6.0.26
  • I edit policies by hand because of Joomla UI problems previously identified
  • I do my requests with Firefox being carefull with client-side cache effect

Thanks in advance,

Replies (2)

RE: PROXY V2 : authentication and policy configuration - Added by Mérour Xavier about 8 years ago

Hello Olivier,

We just opened a ticket about this issue :

We realized that the PROXY do not manage properly HTTP 401 error and need some extra code to do it properly.
It will be done in the next weeks and next release of PROXY will contain the corrections.



RE: PROXY V2 : authentication and policy configuration - Added by Mérour Xavier almost 8 years ago

Good news, this issue is solved with last PROXY release 2.2.0.
Download it here :