spring security filter-chain regex pattern

Posted by lewap on Stack Overflow See other posts from Stack Overflow or by lewap
Published on 2010-05-31T17:31:51Z Indexed on 2010/05/31 17:33 UTC
Read the original article Hit count: 296

Filed under:
|
|

In my application which uses spring security I want to define two different areas both using their own spring security filter-chain. My question is: is it possible to define two regex expressions as follows:

  1. every path starting with /foobar/*
  2. every other path not starting with /foobar

The important part here is that the second path should also match if somewhere within it, but not in the beginning, it cotains the /foobar/ string.

Thanks

© Stack Overflow or respective owner

Related posts about regex

Related posts about path