according to http://alvarosanchez.github.io/grails-spring-security-rest/docs/guide/debugging.html this is the way