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 Digest authentication

In this recipe, let's look at the Digest authentication mechanism in which the password will be hashed. Let's integrate this with the Grails application and see how it does authentication and authorization with it.

Getting ready

  • We need to create a Grails application: grailsdigestauthexample
  • Install Spring Security plugin to the new application
  • Create User and Role classes
  • Edit the Config.groovy file
  • Edit the BootStrap.groovy file
  • Create a controller: SecuredPackt

How to do it…

The following steps are taken for demonstrating the implementation of Digest authentication with Groovy on Grails using Spring Security:

  1. In the command prompt run the following commands:
    $grails create-app grailsdigestauthexample ...

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