Reputation: 11
How to disable authentication in Grails spring security for a particular URL. So that without entering any username/password, i can access the URL. Currently am using interceptUrlMap in config.groovy, and am applying as below
grails.plugins.springsecurity.securityConfigType = "interceptUrlMap "
grails.plugins.springsecurity.interceptUrlMap = [
'/particularurl/**': ['IS_AUTHENTICATED_ANONYMOUSLY'],
'/**' : ['IS_AUTHENTICATED_FULLY']
]
I want to access the /particularurl/** straight away bypassing the spring security.
Upvotes: 0
Views: 797
Reputation: 4177
Try:
'/particularurl/**' : ['permitAll']
Read more: https://grails-plugins.github.io/grails-spring-security-core/v2/guide/requestMappings.html
Upvotes: 2