|
MediaWiki
master
|
A pre-authentication provider is a check that must pass for authentication to proceed. More...


Public Member Functions | |
| 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... | |
| testForAccountCreation ($user, $creator, array $reqs) | |
| Determine whether an account creation may begin. More... | |
| testForAccountLink ($user) | |
| Determine whether an account may linked to another authentication method. More... | |
| testForAuthentication (array $reqs) | |
| Determine whether an authentication may begin. More... | |
| testUserForCreation ($user, $autocreate, array $options=[]) | |
| Determine whether an account may be created. More... | |
Public Member Functions inherited from MediaWiki\Auth\AuthenticationProvider | |
| getAuthenticationRequests ($action, array $options) | |
| Return the applicable list of AuthenticationRequests. More... | |
| getUniqueId () | |
| Return a unique identifier for this instance. More... | |
| setConfig (Config $config) | |
| Set configuration. More... | |
| setManager (AuthManager $manager) | |
| Set AuthManager. More... | |
A pre-authentication provider is a check that must pass for authentication to proceed.
A PreAuthenticationProvider is used to supply arbitrary checks to be performed before the PrimaryAuthenticationProviders are consulted during the login process. Possible uses include checking that a per-IP throttle has not been reached or that a captcha has been solved.
Definition at line 41 of file PreAuthenticationProvider.php.
| MediaWiki\Auth\PreAuthenticationProvider::postAccountCreation | ( | $user, | |
| $creator, | |||
| AuthenticationResponse | $response | ||
| ) |
Post-creation callback.
| User | $user | User that was attempted to be created. 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. |
| AuthenticationResponse | $response | Authentication response that will be returned |
Implemented in MediaWiki\Auth\AbstractPreAuthenticationProvider.
| MediaWiki\Auth\PreAuthenticationProvider::postAccountLink | ( | $user, | |
| AuthenticationResponse | $response | ||
| ) |
Post-link callback.
| User | $user | User that was attempted to be linked. This may become a "UserValue" in the future, or User may be refactored into such. |
| AuthenticationResponse | $response | Authentication response that will be returned |
Implemented in MediaWiki\Auth\AbstractPreAuthenticationProvider.
| MediaWiki\Auth\PreAuthenticationProvider::postAuthentication | ( | $user, | |
| AuthenticationResponse | $response | ||
| ) |
Post-login callback.
| User | null | $user | User that was attempted to be logged in, if known. This may become a "UserValue" in the future, or User may be refactored into such. |
| AuthenticationResponse | $response | Authentication response that will be returned |
Implemented in MediaWiki\Auth\ThrottlePreAuthenticationProvider, and MediaWiki\Auth\AbstractPreAuthenticationProvider.
| MediaWiki\Auth\PreAuthenticationProvider::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 |
Implemented in MediaWiki\Auth\ThrottlePreAuthenticationProvider, MediaWiki\Auth\LegacyHookPreAuthenticationProvider, and MediaWiki\Auth\AbstractPreAuthenticationProvider.
| MediaWiki\Auth\PreAuthenticationProvider::testForAccountLink | ( | $user | ) |
Determine whether an account may linked to another authentication method.
| User | $user | User being linked. This may become a "UserValue" in the future, or User may be refactored into such. |
Implemented in MediaWiki\Auth\AbstractPreAuthenticationProvider.
| MediaWiki\Auth\PreAuthenticationProvider::testForAuthentication | ( | array | $reqs | ) |
Determine whether an authentication may begin.
Called from AuthManager::beginAuthentication()
| AuthenticationRequest[] | $reqs |
Implemented in MediaWiki\Auth\ThrottlePreAuthenticationProvider, MediaWiki\Auth\AbstractPreAuthenticationProvider, and MediaWiki\Auth\LegacyHookPreAuthenticationProvider.
| MediaWiki\Auth\PreAuthenticationProvider::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 |
|
Implemented in MediaWiki\Auth\LegacyHookPreAuthenticationProvider, and MediaWiki\Auth\AbstractPreAuthenticationProvider.