Skip to main content

recaptcha repoze.who plugin implementation

Project description

repoze.who.recaptcha implements server side of the recaptcha API. This IAuthenticator plugin examines environment for recaptcha form values and requests verification.

repoze.who.recaptcha works based on form_handler condition:

if form_handler parameter is not given, always perform authentication.

if form_handler parameter is given, perform authentication only when one of the form_handler values (separated by space) matches the absolute URL where the form is processed.

If the validation succeeds, no action is taken. Otherwise error is passed to environ['repoze.who.error'] and HTTPUnauthorzied(401) is triggered.

Public Mercurial repo is avaliable at bitbucket.org

# sample .ini configuration

[plugin:recaptcha]
use = repoze.who.plugins.captcha:make_authentication_plugin
private_key = si3di5ndlam3x44d
#optional
form_handler = /process /login /admin

[authenticators]
plugins =
        recaptcha

CHANGELOG:

0.1 - 21.09.2008

  • Inital release

0.2 - 23.09.2008

  • New: optional form_handler parameter (make validation optional)

  • New: unittests

  • Change: ident fixes

  • Change: use repoze.who.logger

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

repoze.who.plugins.recaptcha-0.2-py2.5.egg (9.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page