Grails Spring Security plugin - requestmap for action -
is possible secure action name in spring security using requestmap? e.g. need users authenticate able create , update, anonymous users view.
basically want achieve like
new requestmap(url: '/*/create', configattribute: 'is_authenticated_remembered').save()
for actions named 'create' regardless of controllers.
where might begin achieve this?
this blog shows how that:
http://blog.springsource.com/2010/08/11/simplified-spring-security-with-grails/
it seems want under "dynamic request maps" in blog. need add couple lines config.groovy, , can start creating requestmap
s have there:
import grails.plugins.springsecurity.securityconfigtype ... grails.plugins.springsecurity.securityconfigtype = securityconfigtype.requestmap
the blog doesn't show example of wildcard in middle, experience i'm pretty sure work.
Comments
Post a Comment