Recaptcha Spring Security Plugin

  • Tags: recaptcha, spring security
  • Latest: 0.1
  • Last Updated: 12 February 2013
  • Grails version: 1.3.7 > *
3 votes
Dependency:
compile ":recaptcha-spring-security:0.1"

 Documentation  Source  Issues

Summary

Using recaptcha with spring security core for brute force defender

Installation

grails install-plugin recaptcha-spring-security

Description

Using recaptcha with spring security core for brute force defender

based in: Brute Force Defender

Installation

Add the following to your grails-app/conf/BuildConfig.groovy

…
plugins {
…
compile ':recaptcha-spring-security:0.1'	
…
}

Configuration

Config.groovy

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

bruteforcedefender {
    time = 5
    allowedNumberOfAttempts = 3
}

time = minutes maintaining 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