Dear all,
We are creating a web applications that requires log-in and is a companion to our MediaWiki installation.
Thus far, we've created an AuthPlugin which ties into our app's database, so users have the same username and password for both sites.
However, we would like to take this to the next level and have the two applications share sessions, so logging into one automatically logs into the other, and the same for logout.
Can this be done? What's the easiest way to do it?
Right now our app and MediaWiki share essentially nothing; different servers, different languages (ours uses mod_python), different databases (ours is Postgres, MediaWiki install uses MySQL).
We have deep control over our app, but less over the MediaWiki installation (our systems staff manages it).
Help and suggestions much appreciated.
Reid
On Thu, May 15, 2008 at 8:27 AM, Reid Priedhorsky reid@umn.edu wrote:
However, we would like to take this to the next level and have the two applications share sessions, so logging into one automatically logs into the other, and the same for logout.
Can this be done? What's the easiest way to do it?
I implemented this for Wikimedia's CentralAuth AuthPlugin. I used the AutoAuthenticate (recently renamed to UserLoadFromSession), UserLoginComplete and UserLogout hooks to achieve this. You can see the code in CentralAuthHooks.php, on the svn repository under mediawiki/trunk/extensions/CentralAuth/
wikitech-l@lists.wikimedia.org