Commit graph

19 commits

Author SHA1 Message Date
Sam Reed
912b95a104 More documentation tweaks/additions 2011-05-26 20:26:51 +00:00
Siebrand Mazeland
75c6696aa8 Use consistent notation for "@todo FIXME". Should update http://svn.wikimedia.org/doc/todo.html nicely. 2011-05-17 22:03:20 +00:00
Chad Horohoe
8f96e31027 Fix for r80864, host not server. Like r87498 2011-05-06 14:57:05 +00:00
Sam Reed
954efa6903 Remove false related to failfunction... 2011-02-02 11:38:25 +00:00
Chad Horohoe
b3e99eec5b Followup to r79848 (and really, make it useful...)
Turn DatabaseBase::classFromType() into newFromType() factory function for constructing a new object based on a given type and (optional) params. Documented it fairly clearly.

I think it looks nicer :)
2011-01-24 16:31:36 +00:00
Platonides
7728888604 Follow up r79848. Fix the syntax error. 2011-01-08 00:46:45 +00:00
Chad Horohoe
97b62e3034 Add DatabaseBase::classFromType() to reduce the 'Database' . $type duplication 2011-01-07 22:32:52 +00:00
Sam Reed
c5961079ea Remove another setting of failFunction in phase3 in a database constructor 2011-01-04 19:54:30 +00:00
Chad Horohoe
83e9916428 Cleanup r70571, more strict checks for getCookie() return values 2010-08-10 13:30:46 +00:00
Alexandre Emsenhuber
fb36e6ac3e * standardised file headers
* added a basic description
* added @file
2010-08-08 11:55:47 +00:00
Chad Horohoe
aa7b63ce83 Cleanup getCookie() and use it all over the place instead of using $_COOKIE directly 2010-08-06 15:00:43 +00:00
Sam Reed
5fd23ed8b5 More unused globals 2010-07-25 17:47:41 +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
3c50f821ad vB strips whitespace from passwords 2009-12-13 20:24:17 +00:00
Aryeh Gregor
984be432fc Add rudimentary MediaWiki support to ExternalAuth 2009-12-10 01:51:22 +00:00
Aryeh Gregor
d4c6696bb7 Add new ExternalAuth mechanism, Hardcoded
This just lets you enter the database by hand in LocalSettings.php, for
testing.  Now other people can actually test ExternalAuth without having
a vBulletin license.  23 lines not counting whitespace/comments/closing
braces, and took me ~20 minutes to write.
2009-12-10 01:05:13 +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