I’m trying to secure any url starting with /admin with a wild card. All my admin actions start with admin and then the entity name as mentioned below.
/adminPerson/create
/adminPerson/show
/adminDepartment/create
etc
so I want all url staring with /admin to have at-least ROLE_ADMIN something like mentioned below
grails.plugins.springsecurity.interceptUrlMap = [
‘/admin**’: [‘ROLE_ADMIN’],
]
but it doesn’t work 🙁
I haven’t tried this, but I think that this should work
I believe that ‘**’ is a shortcut for any directory path, but doesn’t also replace partial words, so you need both wildcards.