Add experimental new auth framework, ExternalAuth
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 19 Jul 2009 22:02:00 +0000 (22:02 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 19 Jul 2009 22:02:00 +0000 (22:02 +0000)
commit1d1ecfa10f201ba5b4ff6fdb2611579c8144cccc
tree87d7190f14014d69a83711a1098a00d34f56038c
parent6227c599ab2c28a047a599c763274e8186660b7b
Add experimental new auth framework, ExternalAuth

This should not affect any existing behavior.  (Except that it reorders
some error conditions in attemptAutoCreate(), but probably no one cares
about that.)  It adds a new database table, but it will be unused unless
you enable external authentication.

An outline of the rationale for this system, and the design planning, is
at <http://www.mediawiki.org/wiki/ExternalAuth>.  Essentially,
AuthPlugin puts too much of a burden on plugin authors, requiring them
to write a lot of policy logic instead of just handling the actual
interface to the external user database.  This system uses a standard
framework to decide policy questions, and auth plugins only need to
provide some low-level, clearly-specified data.

There are lots of features still missing, marked in the code, but basic
functionality is present.  The commit includes initial support for one
type of external authentication, the forum software vBulletin (which I
happen to know well, and want to integrate with my MediaWiki).

I'm encouraging the inclusion of ExternalAuth plugins in core because in
this framework, the amount of code required to add an additional backend
is quite small -- well under 100 lines in this case.  I'd hope to see a
lot more of these, and it seems unreasonable to make an armada of tiny
extensions instead of letting them live happily in their own directory
out of everyone's way.
RELEASE-NOTES
includes/AutoLoader.php
includes/DefaultSettings.php
includes/ExternalUser.php [new file with mode: 0644]
includes/User.php
includes/extauth/vB.php [new file with mode: 0644]
includes/specials/SpecialUserlogin.php
maintenance/archives/patch-external_user.sql [new file with mode: 0644]
maintenance/tables.sql
maintenance/updaters.inc