Commit graph

11 commits

Author SHA1 Message Date
Alexandre Emsenhuber
7b79d94515 * Standardised file description headers
* Added some descriptions
* Added @file where needed
2010-08-14 17:42:40 +00:00
Alexandre Emsenhuber
3349537c11 * Added new doxygen group "ExternalUser"
* Fixed some doxygen warnings
2010-01-10 21:39:47 +00:00
Aryeh Gregor
3399512711 Begin work on allowing extauth login from cookies
Still need to actually do the user creation, but some more framework is
in place for when I want to continue work.
2009-12-14 00:53:13 +00:00
Aryeh Gregor
5702a0fe30 More convenient format for $wgExternalAuthType
Now is the whole class name, not a suffix.  This allows you to do things
like $wgExternalAuthType::someStaticMethod() instead of having to fiddle
with temporary variables.

This will obviously break anything that has $wgExternalAuthType already
configured, so if that's anyone but me, make sure to fix your configs.
This is still experimental.
2009-12-13 20:45:10 +00:00
Aryeh Gregor
3a2d0c4ef9 Fix comment
We don't strip whitespace from passwords, that would be braindead.
2009-12-13 20:23:53 +00:00
Aryeh Gregor
b520bfb771 Rename some extauth functions and fields
Per Code Review at
<http://www.mediawiki.org/wiki/Special:Code/MediaWiki/53497#c4633>.  One
of the changes was a database field, and updaters might have to be
written for pgsql and DB2.
2009-12-08 19:32:17 +00:00
Happy-melon
0e436d09c3 Recommit some of the 'backend' stuff from the Login branch, after talking with Brion:
* ExternalUser::getLocalUser() from r56683
* Documentation and style tweaks for HTMLForm from r56682
* HTMLForm::add{HiddenField|(Pre|Post|Header)Text|Button}() functions, from 56782 and r56896.
Frontend stuff will wait until after 1.16 is branched.
2009-09-28 19:04:10 +00:00
Brion Vibber
0d1d984313 Revert broken rewrite of login system; totally broken.
* Login doesn't attach to session properly, so can't stay logged in!
* Password field shown in plaintext!

If it just DOESN'T WORK please keep it on a work branch, don't put it in trunk!

Reverted:
r56682
r56683
r56684
r56686
r56688
r56696
r56699
r56702
r56703
r56704
r56782
r56896
2009-09-26 00:49:32 +00:00
Happy-melon
5bb61a334a Follow-up to r56683 - unnecessary abstraction 2009-09-21 14:18:26 +00:00
Happy-melon
7db738a09e New function for ExternalUser to get the local User corresponding to the external one. 2009-09-20 18:53:17 +00:00
Aryeh Gregor
1d1ecfa10f 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.
2009-07-19 22:02:00 +00:00