* be specified.
*
* null indicates no external authentication is to be used. Otherwise,
- * "ExternalUser_$wgExternalAuthType" must be the name of a non-abstract class
- * that extends ExternalUser.
+ * $wgExternalAuthType must be the name of a non-abstract class that extends
+ * ExternalUser.
*
* Core authentication modules can be found in includes/extauth/.
*/
if ( is_null( $wgExternalAuthType ) ) {
return false;
}
- $class = "ExternalUser_$wgExternalAuthType";
- $obj = new $class;
+ $obj = new $wgExternalAuthType;
if ( !$obj->initFromName( $name ) ) {
return false;
}
if ( is_null( $wgExternalAuthType ) ) {
return false;
}
- $class = "ExternalUser_$wgExternalAuthType";
- $obj = new $class;
+ $obj = new $wgExternalAuthType;
if ( !$obj->initFromId( $id ) ) {
return false;
}
if ( is_null( $wgExternalAuthType ) ) {
return false;
}
- $class = "ExternalUser_$wgExternalAuthType";
- $obj = new $class;
+ $obj = new $wgExternalAuthType;
if ( !$obj->initFromCookie( $cookie ) ) {
return false;
}
* This class supports external authentication from a literal array dumped in
* LocalSettings.php. It's mostly useful for testing. Example configuration:
*
- * $wgExternalAuthType = 'Hardcoded';
+ * $wgExternalAuthType = 'ExternalUser_Hardcoded';
* $wgExternalAuthConf = array(
* 'Bob Smith' => array(
* 'password' => 'literal string',
* This class supports authentication against an external MediaWiki database,
* probably any version back to 1.5 or something. Example configuration:
*
- * $wgExternalAuthType = 'MediaWiki';
+ * $wgExternalAuthType = 'ExternalUser_MediaWiki';
* $wgExternalAuthConf = array(
* 'DBtype' => 'mysql',
* 'DBserver' => 'localhost',
* code, only reads from the database. Example lines to put in
* LocalSettings.php:
*
- * $wgExternalAuthType = 'vB';
+ * $wgExternalAuthType = 'ExternalUser_vB';
* $wgExternalAuthConf = array(
* 'server' => 'localhost',
* 'username' => 'forum',