Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
repoze.who.plugins.recaptcha-0.2-py2.5.egg (9.1 kB) Copy SHA256 hash SHA256 Egg 2.5 Sep 23, 2008

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page