Version 4 (modified by antonykummel@…, 9 years ago) (diff)


True logout mechanism for Trac


This is a plugin based off the code from [trac-ticket:791]. It is a replacement for the included LoginModule, allowing for a true logout.

Note: I have not tested this code anywhere, so I can't yet vouch that it works. If you try it before I get a chance to, please let me know how it goes (my email address is on my user page).

Bugs/Feature Requests

Existing bugs and feature requests for AuthFormPlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from here.


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


Make sure you disable the built-in login module.

trac.web.auth.LoginModule = disabled


If the url to trac is not of the form http://trac.domain.ext/, then this won't work, because it assume the login page is always at http://trac.domain.ext/login. This can be remedied in Apache if you do this:

<Location "/login"> # instead of /trac/login, or whatever
  AuthType Basic
  Require valid-user
# This is needed for authform
Redirect /login http://whatever.yourdomain.ext/trac/login # or wherever it really is


Author: coderanger