Last modified: 2011-03-13 18:06:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 9390 - request UserLogin hook
request UserLogin hook
Product: MediaWiki
Classification: Unclassified
User login and signup (Other open bugs)
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-03-22 20:43 UTC by Eric Myers
Modified: 2011-03-13 18:06 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Eric Myers 2007-03-22 20:43:39 UTC
I have written an authentication extension which provides automatic and
transparent authentication to a wiki based on existing authentication to a
co-located BOINC project.   To make it really seamless I'd like to request the
addition of a UserLogin hook in wfSpecialUserLogin(), as described at the
attached URL (which links into a larger page about the plug-in).

I'm new to MediaWiki so I think I figured out that this is the best way to do
this, but I'm open to suggestions of something better.
Comment 1 Rob Church 2007-03-23 16:12:00 UTC
Use the existing AuthPlugin interface to write authentication plugins, with the
AutoAuthenticate hook if needed.
Comment 2 Eric Myers 2007-03-23 16:29:04 UTC
My plug-in does in fact use the AuthPlugin interface, which allows us to
redirect login/logout links in PersonalLinks.  

But there are multiple places where a wiki user may be asked to authenticate and
redirected to Special:UserLogin.  We want to use BOINC for all authentication,
so this needs to be redirected.   The hook I propose is one way to do it, and
seems to be the easiest.   I found nothing in AuthPlugin which would allow us to
redirect any request for a login to the BOINC login page.
Comment 3 Eric Myers 2007-03-23 16:51:59 UTC
And my plug-in uses the AutoAuthenticate hook.  All that works.  The one case
that is a problem is if an anonymous user tries to do something (eg create a
talk page) which requires authentication, then  they are sent to
Special:UserLogin rather than to the BOINC login page.  The hook I'm requesting
takes care of that.

Note You need to log in before you can comment on or make changes to this bug.