wiki:AuthRequiredPlugin

Version 8 (modified by rjollos, 2 years ago) (diff)

Deprecated.

Auth Required Plugin

Notice: This plugin is deprecated. Please see the PermRedirectPlugin for equivalent functionality.

Description

This plugin redirects all anonymous requests (i.e. users not logged in) to /login.

For any practical purpose, this hack only makes sense if you are using the AccountManagerPlugin to get a form based login, and, as such, requires it. If you aren't using AccountManager, you could simply password protect trac's base URI to present a standard auth dialog.

This is essentially a "pretty" solution to a couple annoyances:

  • trac will display an error stating that WIKI_VIEW permission is required when anonymous has no permissions (ugly)
  • certain plugins and navigation contributors still work for anonymous even if he has no permissions:

Bugs/Feature Requests

Existing bugs and feature requests for AuthRequiredPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Install

First make sure you've installed setuptools.

Then you can install the plugin using the easy_install application.

Note: Windows users will need to add easy_install to their PATH.

For Trac 0.10:

Install the trac:WebAdmin plugin.

Then install the AccountManagerPlugin.

Then install this plugin:

easy_install http://trac-hacks.org/svn/authrequiredplugin/0.10

Source

You can check out AuthRequiredPlugin from here using Subversion, or browse the source with Trac.

Recent Changes

[2462] by BladeHawke on 2007-07-13 07:37:59
AuthRequiredPlugin:

Removed spurious self.env.href() that caused redirection issues on trac installation not at root of vhost. (fixes #1771)

[2375] by BladeHawke on 2007-07-04 00:45:34
AuthRequiredPlugin:

New redirect method redirects user to original URL after login instead of WikiStart (fixes #1180)
Thanks to jfernandez@…

[2222] by BladeHawke on 2007-05-04 01:19:48
AuthRequiredPlugin:

Allow access to /reset_password (fixes #1315). Thanks to phpnut.

Author/Contributors

Author: BladeHawke
Maintainer: none
Contributors: