MediaWiki
1.28.0
|
Backwards-compatibility wrapper for AuthManager via $wgAuth. More...
Public Member Functions | |
__construct () | |
addUser ($user, $password, $email= '', $realname= '') | |
allowPasswordChange () | |
allowPropChange ($prop= '') | |
allowSetLocalPassword () | |
authenticate ($username, $password) | |
autoCreate () | |
canCreateAccounts () | |
domainList () | |
getCanonicalName ($username) | |
getDomain () | |
getUserInstance (User &$user) | |
initUser (&$user, $autocreate=false) | |
modifyUITemplate (&$template, &$type) | |
setDomain ($domain) | |
setPassword ($user, $password) | |
strict () | |
strictUserAuth ($username) | |
updateExternalDB ($user) | |
updateExternalDBGroups ($user, $addgroups, $delgroups=[]) | |
updateUser (&$user) | |
userExists ($name) | |
validDomain ($domain) | |
Public Member Functions inherited from AuthPlugin | |
addUser ($user, $password, $email= '', $realname= '') | |
Add a user to the external authentication database. More... | |
allowPasswordChange () | |
Can users change their passwords? More... | |
allowPropChange ($prop= '') | |
Allow a property change? Properties are the same as preferences and use the same keys. More... | |
allowSetLocalPassword () | |
Should MediaWiki store passwords in its local database? More... | |
authenticate ($username, $password) | |
Check if a username+password pair is a valid login. More... | |
autoCreate () | |
Return true if the wiki should create a new local account automatically when asked to login a user who doesn't exist locally but does in the external auth database. More... | |
canCreateAccounts () | |
Check to see if external accounts can be created. More... | |
domainList () | |
Get a list of domains (in HTMLForm options format) used. More... | |
getCanonicalName ($username) | |
If you want to munge the case of an account name before the final check, now is your chance. More... | |
getDomain () | |
Get the user's domain. More... | |
getUserInstance (User &$user) | |
Get an instance of a User object. More... | |
initUser (&$user, $autocreate=false) | |
When creating a user account, optionally fill in preferences and such. More... | |
modifyUITemplate (&$template, &$type) | |
Modify options in the login template. More... | |
setDomain ($domain) | |
Set the domain this plugin is supposed to use when authenticating. More... | |
setPassword ($user, $password) | |
Set the given password in the authentication database. More... | |
strict () | |
Return true to prevent logins that don't authenticate here from being checked against the local database's password fields. More... | |
strictUserAuth ($username) | |
Check if a user should authenticate locally if the global authentication fails. More... | |
updateExternalDB ($user) | |
Update user information in the external authentication database. More... | |
updateExternalDBGroups ($user, $addgroups, $delgroups=[]) | |
Update user groups in the external authentication database. More... | |
updateUser (&$user) | |
When a user logs in, optionally fill in preferences and such. More... | |
userExists ($username) | |
Check whether there exists a user account with the given name. More... | |
validDomain ($domain) | |
Check to see if the specific domain is a valid domain. More... | |
Protected Attributes | |
string null | $domain = null |
Psr Log LoggerInterface | $logger = null |
Protected Attributes inherited from AuthPlugin | |
string | $domain |
Backwards-compatibility wrapper for AuthManager via $wgAuth.
Definition at line 30 of file AuthManagerAuthPlugin.php.
MediaWiki\Auth\AuthManagerAuthPlugin::__construct | ( | ) |
Definition at line 37 of file AuthManagerAuthPlugin.php.
References MediaWiki\Logger\LoggerFactory\getInstance().
MediaWiki\Auth\AuthManagerAuthPlugin::addUser | ( | $user, | |
$password, | |||
$email = '' , |
|||
$realname = '' |
|||
) |
Definition at line 163 of file AuthManagerAuthPlugin.php.
MediaWiki\Auth\AuthManagerAuthPlugin::allowPasswordChange | ( | ) |
Definition at line 106 of file AuthManagerAuthPlugin.php.
References $req, MediaWiki\Auth\AuthManager\ACTION_CHANGE, as, and MediaWiki\Auth\AuthManager\singleton().
MediaWiki\Auth\AuthManagerAuthPlugin::allowPropChange | ( | $prop = '' | ) |
Definition at line 102 of file AuthManagerAuthPlugin.php.
References MediaWiki\Auth\AuthManager\singleton().
MediaWiki\Auth\AuthManagerAuthPlugin::allowSetLocalPassword | ( | ) |
Definition at line 117 of file AuthManagerAuthPlugin.php.
MediaWiki\Auth\AuthManagerAuthPlugin::authenticate | ( | $username, | |
$password | |||
) |
Definition at line 45 of file AuthManagerAuthPlugin.php.
References MediaWiki\Auth\AuthManagerAuthPlugin\$domain, $res, $username, MediaWiki\Auth\AuthManager\ACTION_LOGIN, MediaWiki\Auth\AuthenticationResponse\FAIL, MediaWiki\Auth\AuthenticationRequest\loadRequestsFromSubmission(), MediaWiki\Auth\AuthenticationResponse\PASS, and MediaWiki\Auth\AuthManager\singleton().
MediaWiki\Auth\AuthManagerAuthPlugin::autoCreate | ( | ) |
Definition at line 98 of file AuthManagerAuthPlugin.php.
MediaWiki\Auth\AuthManagerAuthPlugin::canCreateAccounts | ( | ) |
Definition at line 159 of file AuthManagerAuthPlugin.php.
References MediaWiki\Auth\AuthManager\singleton().
MediaWiki\Auth\AuthManagerAuthPlugin::domainList | ( | ) |
Definition at line 196 of file AuthManagerAuthPlugin.php.
Referenced by MediaWiki\Auth\AuthManagerAuthPlugin\validDomain().
MediaWiki\Auth\AuthManagerAuthPlugin::getCanonicalName | ( | $username | ) |
Definition at line 187 of file AuthManagerAuthPlugin.php.
References $username.
MediaWiki\Auth\AuthManagerAuthPlugin::getDomain | ( | ) |
Definition at line 80 of file AuthManagerAuthPlugin.php.
References MediaWiki\Auth\AuthManagerAuthPlugin\$domain.
MediaWiki\Auth\AuthManagerAuthPlugin::getUserInstance | ( | User & | $user | ) |
Definition at line 192 of file AuthManagerAuthPlugin.php.
MediaWiki\Auth\AuthManagerAuthPlugin::initUser | ( | & | $user, |
$autocreate = false |
|||
) |
Definition at line 183 of file AuthManagerAuthPlugin.php.
References $user, and Hooks\run().
MediaWiki\Auth\AuthManagerAuthPlugin::modifyUITemplate | ( | & | $template, |
& | $type | ||
) |
Definition at line 72 of file AuthManagerAuthPlugin.php.
MediaWiki\Auth\AuthManagerAuthPlugin::setDomain | ( | $domain | ) |
Definition at line 76 of file AuthManagerAuthPlugin.php.
References MediaWiki\Auth\AuthManagerAuthPlugin\$domain.
MediaWiki\Auth\AuthManagerAuthPlugin::setPassword | ( | $user, | |
$password | |||
) |
Definition at line 122 of file AuthManagerAuthPlugin.php.
References MediaWiki\Auth\AuthManagerAuthPlugin\$domain, $req, $status, $user, MediaWiki\Auth\AuthManager\ACTION_CHANGE, as, MediaWiki\Auth\AuthenticationRequest\loadRequestsFromSubmission(), and MediaWiki\Auth\AuthManager\singleton().
MediaWiki\Auth\AuthManagerAuthPlugin::strict | ( | ) |
Definition at line 173 of file AuthManagerAuthPlugin.php.
MediaWiki\Auth\AuthManagerAuthPlugin::strictUserAuth | ( | $username | ) |
Definition at line 178 of file AuthManagerAuthPlugin.php.
MediaWiki\Auth\AuthManagerAuthPlugin::updateExternalDB | ( | $user | ) |
Definition at line 148 of file AuthManagerAuthPlugin.php.
References $user.
MediaWiki\Auth\AuthManagerAuthPlugin::updateExternalDBGroups | ( | $user, | |
$addgroups, | |||
$delgroups = [] |
|||
) |
Definition at line 154 of file AuthManagerAuthPlugin.php.
References $user, and Hooks\run().
MediaWiki\Auth\AuthManagerAuthPlugin::updateUser | ( | & | $user | ) |
Definition at line 93 of file AuthManagerAuthPlugin.php.
References $user, and Hooks\run().
MediaWiki\Auth\AuthManagerAuthPlugin::userExists | ( | $name | ) |
Definition at line 41 of file AuthManagerAuthPlugin.php.
References $name, and MediaWiki\Auth\AuthManager\singleton().
MediaWiki\Auth\AuthManagerAuthPlugin::validDomain | ( | $domain | ) |
Definition at line 88 of file AuthManagerAuthPlugin.php.
References MediaWiki\Auth\AuthManagerAuthPlugin\domainList().
|
protected |
|
protected |
Definition at line 35 of file AuthManagerAuthPlugin.php.