|Version 2 (modified by 8 years ago) (diff),|
Joomla Integration Plugin
This is a plugin that enables authentication against a Joomla! 1.0 host. It works by simply reading out the Session cookie, and using the session data from Joomla that is stored in MySQL. It also contains an authz_policy implementation that is able to authenticate against the Joomla group of the user.
Warning: The current code is not thread safe. The problem is that I tried to cache the db connection, but my implementation is too naive and completely broken. If someone knows a good way to only open a connection per request, or keep a connection pool, I would love to hear from them.
Getting the Code
The code is currently only in GIT available from http://git.sipsolutions.net/joomlaplugin.git. Check it out using:
The implementation of the configuration options is not very nice. Should you know of a good way to share the DB connection and configuration between the different parts in the plugin, I would love to hear about it.
There are a lot of ways to improve this plugin. One could implement embedding trac into a Joomla website. Another improvement could be to implement a login box inside Trac which returns to the original page after the login. Either by creating the session from trac, or getting Joomla to redirect the user back to the Trac website.