Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

sharing sessions with MediaWiki

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


reid at umn

May 14, 2008, 3:27 PM

Post #1 of 2 (85 views)
Permalink
sharing sessions with MediaWiki

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

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


andrew at epstone

May 15, 2008, 4:30 AM

Post #2 of 2 (73 views)
Permalink
Re: sharing sessions with MediaWiki [In reply to]

On Thu, May 15, 2008 at 8:27 AM, Reid Priedhorsky <reid[at]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/

--
Andrew Garrett

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.