I am using spring security 1.2.7.3 and I want to protect URLs using the http method, in other words, I need something like this in my config.groovy:
grails.plugins.springsecurity.interceptUrlMap = [
'/api/person/**': ['ROLE_ADMIN'], //IF HTTP "POST"
'/api/person/**': ['IS_AUTHENTICATED_ANONYMOUSLY'], //IF HTTP "GET"
}
Is it possible? I know that, of course, there are other ways to achieve this, but I prefer to solve the problem this way.
ps this question has already been asked here .
source
share