Able To Include Parameters and Values in Security Pattern?
Hi,
I am attempting to use the Spring security pattern to intercept a URL that includes a particular parameter and value. Can someone tell me if what I am attempting is feasible and if so, what am I doing wrong please? Details as follows.
There are two types of user that can access the same page. However, each user is limited to one request value as shown below.
<security:intercept-url pattern="/**foo.htm?parameter=value1*" access="ROLE_USER1"/>
<security:intercept-url pattern="/**foo.htm?parameter=value2*" access="ROLE_USER2"/>
However, I am finding that the above configuration will not permit ROLE_USER1 to access a page with request:
...foo.htm?parameter=value1
I have tried a couple of variations, but neither of these worked either:
<security:intercept-url pattern="/**foo.htm\?parameter=value1*" access="ROLE_USER1"/>
<security:intercept-url pattern="/**foo.htm*parameter=value1*" access="ROLE_USER1"/>
Should I be able to filter on a parameter value and if so, what is the correct syntax?
Thank you.
Regards
Brett S