O'Reilly logo

Spring Security 3.x Cookbook by Anjana Mankale

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Spring Security with Groovy Grails multiple authentication

So far we have seen single-role authentication. Let's see a demonstration of multiple roles. The recipe uses another plugin called spring-security-ui.

It has many controllers which provide user management screens for the user.

This saves developer time in coding these screens. It also provides a search option with autocomplete.

The spring-security-ui plugin also requires additional plugins to be installed which will be prompted at the console. There is an alternative to installing the plugin, that is, you can give the dependency directly in the BuildConfig.groovy file.

grails.project.dependency.resolution = {
  ...
  plugins {
    compile ":spring-security-ui:0.2""
  }
}

Getting ready

We need to do the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required