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 requestmaps 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

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -