Force HTTP authentication from within Trac

Description

Allows you to protect certain paths with HTTP authentication. The AccountManagerPlugin is used to check passwords.

Primarily this is meant to be used with the XmlRpcPlugin so it will work while using AccountManager's form-based logins.

Bugs/Feature Requests

Existing bugs and feature requests for HttpAuthPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out HttpAuthPlugin from here using Subversion, or browse the source with Trac. The version in 0.10 is also working with 0.11.2.1 release, at least with mod_python.

Example

To enable:

[components]
httpauth.* = enabled

To add additional paths:

[httpauth]
paths = /xmlrpc, /login/xmlrpc

To add additional formats, like rss use this:

[httpauth]
formats = rss

Recent Changes

[3416] by coderanger on 03/25/08 07:39:08

Change my email to avoid Yahoo, which decided to brake my scraper script recently.

[1891] by coderanger on 01/23/07 05:12:58

HttpAuthPlugin:

Fix 2.3 compat. (closes #1093)

[1890] by coderanger on 01/23/07 05:10:36

HttpAuthPlugin:

What was I smoking when I wrote this? Should actually work now. (closes #1092)

[1858] by coderanger on 01/10/07 20:10:51

HttpAuthPlugin:

Change default path to match normal behavior. (closes #1021)

Author/Contributors

Author: coderanger
Contributors: