This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description


This is a modified Cookie Auth Plugin that only redirects if the UA is a browser. The main envisioned use case is for scenarios that require an API to be built for an existing client (that we have no control over) that does not expect redirects to login form upon authentication.

The detection is done by comparing the request User-Agent header against some of the most common browser user agent strings, ie. “Mozilla”, “Webkit”, “Opera”, and for the terminal users out there, “Lynx”.

Basic installation and use:

  1. Go to Zope root acl_users folder via ZMI
  2. Add a “Browser-only-redirecting Cookie Auth Helper”.
  3. Go to “plugins” folder
  4. Click “Challenge Plugins” to get to the plugin registry
  5. Disable “credentials_cookie_auth” plugin
  6. Add in its place the plugin (helper) you added in 2.

Make sure the plugin/helper you added is at the top so it’s given a chance to run first.

Then, try authenticating with wrong credentials. You should get a proper 401 Unauthorized response rather than the usual 302 Moved Temporarily (typically causing redirect).

Change history


1.0dev (unreleased)

  • Initial release


Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (18.9 kB) Copy SHA256 Checksum SHA256 Source Aug 24, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting