Spring Security with Grails 3

I am a big user and advocate of Grails, and I was curious about working with Grails 3, so I started taking a look at it during the M2 release. Most of the applications I work on require authentication/authorization, and all of them that do so, use Spring Security to do it.

In the Grails 2.x applications I have worked on, I have always used the awesome Grails Spring Security plugin. I noticed that so far, it hasn’t been updated to support working with Grails 3, but I don’t see that as a huge issue. I had been a Spring developer long before I had come to Grails, so I figured I would just tackle the problem the “old-fashioned way” with Spring Beans and DI.

I won’t go over the demo here in this blog post. You can find the code out on GitHub, and the README explains how to run through the different scenarios for authentication/authorization. Hopefully my code can help you out, if you are looking to start integrating Spring Security with Grails 3, and need to do so before a plugin is available for use.

Advertisements
This entry was posted in Grails and tagged , , , , , , . Bookmark the permalink.

3 Responses to Spring Security with Grails 3

  1. diego says:

    Thanks for sharing!

  2. Pingback: Settimanale Groovy #69 | BME

  3. Anderson Lira says:

    Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s