MediaWiki
1.33.0
|
Public Member Functions | |
__construct ( $params=[]) | |
getAuthenticationRequests ( $action, array $options) | |
Return the applicable list of AuthenticationRequests. More... | |
testForAccountCreation ( $user, $creator, array $reqs) | |
Determine whether an account creation may begin. More... | |
testUserForCreation ( $user, $autocreate, array $options=[]) | |
Determine whether an account may be created. More... | |
Public Member Functions inherited from MediaWiki\Auth\AbstractPreAuthenticationProvider | |
postAccountCreation ( $user, $creator, AuthenticationResponse $response) | |
Post-creation callback. More... | |
postAccountLink ( $user, AuthenticationResponse $response) | |
Post-link callback. More... | |
postAuthentication ( $user, AuthenticationResponse $response) | |
Post-login callback. More... | |
testForAccountLink ( $user) | |
Determine whether an account may linked to another authentication method. More... | |
testForAuthentication (array $reqs) | |
Determine whether an authentication may begin. More... | |
Public Member Functions inherited from MediaWiki\Auth\AbstractAuthenticationProvider | |
getUniqueId () | |
@inheritDoc More... | |
setConfig (Config $config) | |
Set configuration. More... | |
setLogger (LoggerInterface $logger) | |
setManager (AuthManager $manager) | |
Set AuthManager. More... | |
Protected Attributes | |
$blockAutoAccountCreation | |
Protected Attributes inherited from MediaWiki\Auth\AbstractAuthenticationProvider | |
Config | $config |
LoggerInterface | $logger |
AuthManager | $manager |
Definition at line 7 of file TitleBlacklistPreAuthenticationProvider.php.
TitleBlacklistPreAuthenticationProvider::__construct | ( | $params = [] | ) |
Definition at line 10 of file TitleBlacklistPreAuthenticationProvider.php.
References $params.
TitleBlacklistPreAuthenticationProvider::getAuthenticationRequests | ( | $action, | |
array | $options | ||
) |
Return the applicable list of AuthenticationRequests.
Possible values for $action depend on whether the implementing class is also a PreAuthenticationProvider, PrimaryAuthenticationProvider, or SecondaryAuthenticationProvider.
string | $action | |
array | $options | Options are:
|
Reimplemented from MediaWiki\Auth\AbstractPreAuthenticationProvider.
Definition at line 20 of file TitleBlacklistPreAuthenticationProvider.php.
References $options, $user, User\newFromName(), User, and TitleBlacklist\userCanOverride().
TitleBlacklistPreAuthenticationProvider::testForAccountCreation | ( | $user, | |
$creator, | |||
array | $reqs | ||
) |
Determine whether an account creation may begin.
Called from AuthManager::beginAccountCreation()
User | $user | User being created (not added to the database yet). This may become a "UserValue" in the future, or User may be refactored into such. |
User | $creator | User doing the creation. This may become a "UserValue" in the future, or User may be refactored into such. |
AuthenticationRequest[] | $reqs |
Reimplemented from MediaWiki\Auth\AbstractPreAuthenticationProvider.
Definition at line 32 of file TitleBlacklistPreAuthenticationProvider.php.
References $req, $user, class, TitleBlacklistHooks\testUserName(), and true.
TitleBlacklistPreAuthenticationProvider::testUserForCreation | ( | $user, | |
$autocreate, | |||
array | $options = [] |
||
) |
Determine whether an account may be created.
User | $user | User being created (not added to the database yet). This may become a "UserValue" in the future, or User may be refactored into such. |
bool | string | $autocreate | False if this is not an auto-creation, or the source of the auto-creation passed to AuthManager::autoCreateUser(). |
array | $options |
|
Reimplemented from MediaWiki\Auth\AbstractPreAuthenticationProvider.
Definition at line 47 of file TitleBlacklistPreAuthenticationProvider.php.
References $options, $user, RequestContext\getMain(), StatusValue\newGood(), and TitleBlacklistHooks\testUserName().
|
protected |
Definition at line 8 of file TitleBlacklistPreAuthenticationProvider.php.