(Quick Reference)

4 Sample Application - Reference Documentation

Authors: Burt Beckwith

Version: 2.0.1

4 Sample Application

Working with ACLs in Spring Security is complex but it will be easier to understand with a sample application. To help get you started, there's a Grails application that uses the plugin to test with. It's based on the Contacts application that comes with Spring Security. But where the Spring Security application uses SpringMVC, JDBC, etc., this application is 100% Grails. Download it from here.

Unpack the zip file, for example in /opt/workspace/grails-contacts

Upgrade the application to make sure it's compatible with the version of Grails you're using (note that all of the Spring Security plugins require at least version 2.3 of Grails) and start the app:


$ grails run-app

Open http://localhost:8080/grails-contacts/ in a browser to get started. The main functionality is at http://localhost:8080/grails-contacts/secure. The login page lists the various configured users and their passwords; the "rod" user is an admin and has full access and the other users have various grants and ownership.