Grails Cookbook - A collection of tutorials and examples

Grails Spring Security Core Plugin - Registering Callback Closures

I was searching for a way to hook business logic after successful user login while using Spring Security Core plugin. The simplest way to do this is to register callback closures. It let's you hook your custom code inside Config.groovy after certain Spring Security events.

Grails Spring Security Core Plugin Example - Annotations

This example will show how to use Spring Security Core Plugin using annotations. This is one of the simplest way of using this plugin to secure your Grails applications.

Grails Spring Security Core Plugin Example - Static URL Map Rules

This example will show how to use Spring Security Core Plugin using static URL map rules. Similar to annotations, this is also a simple way of using this plugin to secure your Grails applications.

Grails Spring Security Core Plugin Example - Dynamic Request Maps

This example will show how to use Spring Security Core Plugin using dynamic request maps. Similar to annotations, this is also a simple way of using this plugin to secure your Grails applications.