Plugins You can find out about all the publicly available Grails plugins.

Recaptcha Spring Security Plugin

3 votes
Dependency:
compile ":recaptcha-spring-security:1.0"

 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