example using grails spring security core plugins reference : http://www.bahmanm.com/blogs/grails-howto-secure-app-using-spring-security-core