Grails: Using recaptcha with spring security core
Groovy Java
Switch branches/tags
Nothing to show
Latest commit f0c38af Jul 18, 2014 @rpalcolea Merge pull request #6 from armeris/master
Plugin upgrade
Permalink
Failed to load latest commit information.
grails-app
src
.gitignore
README.md
RecaptchaSpringSecurityGrailsPlugin.groovy
application.properties

README.md

recaptcha-spring-security

Grails: Using recaptcha with spring security core for brute force defender

based in: Brute Force Defender

Requirements

  1. Grails 2.3.2+
  2. Spring Security Core Plugin (2.0-RC3+)
  3. ReCaptcha Plugin (0.6.9+)

Installation

  1. clone the repository: git clone https://github.com/rpalcolea/recaptcha-spring-security.git

  2. Enter to the repository via command line.

  3. package the plugin: grails package-plugin

Configuration

Config.groovy

Add the following lines to your Grails Config.groovy file:

bruteforcedefender {
	time = 5
	allowedNumberOfAttempts = 3
}

time = minutes mantaining failed attempts allowed

NumberOfAttempts = number of failed attempts before showing the recaptcha widget.

Adding the recaptcha to your auth view

Open your auth.gsp (/grails-app/views/login/auth.gsp) and add the next line wherever you want to render the recaptcha after the attempts.

      <g:recaptchaLogin/>

Extras

Thanks to Vinco Orbis and Burt Beckwith