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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T11390, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 9390 - request UserLogin hook
request UserLogin hook
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
User login and signup (Other open bugs)
1.8.x
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://pirates.spy-hill.net/glossary/...
:
Depends on:
Blocks:
  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: ---


Attachments

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.


Navigation
Links