Integrating Captcha with Spring Security

前端 未结 4 2139
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-24 15:15

What is appropriate way to integrate SpringSecurity with Capcha ?

I have following use case : When user will tries to login, if we he failed to login N times, captc

相关标签:
4条回答
  • 2020-12-24 15:23

    As an alternative to using JCaptcha, if you'd like to use the reCAPTCHA Service on your site, then check out the free Section 4.4 (direct PDF link) of the new Spring in Practice book (currently in beta).

    This shows you integration with Spring MVC and Spring Validation. Since the integration is on the front-end, w/external APIs, Spring Security doesn't really come into the picture here.

    I am not sure what your use case is? Are you hoping to use captchas as an alternative to authentication to prove "human"-ness?

    0 讨论(0)
  • 2020-12-24 15:31

    I've done integration with reCaptcha and Spring Security (Spring Web Flow + JSF) by defining custom security filter. Maybe it isn't most elegant, but works good. You can look at my blog - unfortunately in polish, but maybe will help You or someone...

    http://marioosh.net/blog/?p=1087

    0 讨论(0)
  • 2020-12-24 15:40

    Take a look at this article: Spring Security 3: Integrating reCAPTCHA Service.

    This uses two filters to make reCAPTCHA integration as seamless and unobstrusive as possible. That means your existing Spring Security implementation will not break. No need to touch existing classes

    0 讨论(0)
  • 2020-12-24 15:46

    Kaptcha is easy to use.

    0 讨论(0)
提交回复
热议问题