how to use params in spring security antmatchers

Multi tool use
how to use params in spring security antmatchers
How should I use parameters like this in antmatchers in spring ?
I have many URLs that start with /sUrl and have different params.
This Code doesn't work!
.antMatchers("/sUrl?params={url:"reports/Manager",subSystem:"ABS"}/**").access("hasRole('ROLE_ABS')")
No, I think it can't help.I want a guide to how to use parameters in matching... like this part:?params={url...
– faraa
5 hours ago
I belive you can use regular expressions. You may try to write your params section as a regular expression pattern. It's probably the way it is supposed to be
– avi.elkharrat
5 hours ago
Possible duplicate of Spring-security cannot match "?parameter" format?
– dur
5 hours ago
@dur, Granted, but the versions have changed so much since that an update is most welcome!
– avi.elkharrat
5 hours ago
1 Answer
1
You can probably solve your problem using regExMatcher
regExMatcher
See HttpSecurity regExMatcher method for more details.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Sorry...I am using spring security 4
– faraa
6 hours ago