BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
MediaWiki\Auth\LegacyHookPreAuthenticationProvider Class Reference
Inheritance diagram for MediaWiki\Auth\LegacyHookPreAuthenticationProvider:
Collaboration diagram for MediaWiki\Auth\LegacyHookPreAuthenticationProvider:

Public Member Functions

 testForAuthentication (array $reqs)
 
 testForAccountCreation ($user, $creator, array $reqs)
 
 testUserForCreation ($user, $autocreate)
 
- Public Member Functions inherited from MediaWiki\Auth\AbstractPreAuthenticationProvider
 getAuthenticationRequests ($action, array $options)
 
 testForAuthentication (array $reqs)
 
 postAuthentication ($user, AuthenticationResponse $response)
 
 testForAccountCreation ($user, $creator, array $reqs)
 
 testUserForCreation ($user, $autocreate)
 
 postAccountCreation ($user, $creator, AuthenticationResponse $response)
 
 testForAccountLink ($user)
 
 postAccountLink ($user, AuthenticationResponse $response)
 
- Public Member Functions inherited from MediaWiki\Auth\AbstractAuthenticationProvider
 setLogger (LoggerInterface $logger)
 
 setManager (AuthManager $manager)
 
 setConfig (Config $config)
 
 getUniqueId ()
 

Protected Member Functions

 makeFailResponse ($user, $creator, $constant, $msg, $hook)
 

Additional Inherited Members

- Protected Attributes inherited from MediaWiki\Auth\AbstractAuthenticationProvider
 $logger
 
 $manager
 
 $config
 

Detailed Description

A pre-authentication provider to call some legacy hooks.

Since
1.27
Deprecated:
since 1.27

Member Function Documentation

MediaWiki\Auth\LegacyHookPreAuthenticationProvider::makeFailResponse (   $user,
  $creator,
  $constant,
  $msg,
  $hook 
)
protected

Construct an appropriate failure response

Parameters
User$user
User | null$creator
int$constantLoginForm constant
string | null$msgMessage
string$hookHook
Returns
StatusValue
MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAccountCreation (   $user,
  $creator,
array  $reqs 
)

Determine whether an account creation may begin

Called from AuthManager::beginAccountCreation()

Note
No need to test if the account exists, AuthManager checks that
Parameters
User$userUser being created (not added to the database yet). This may become a "UserValue" in the future, or User may be refactored into such.
User$creatorUser doing the creation. This may become a "UserValue" in the future, or User may be refactored into such.
AuthenticationRequest[]$reqs
Returns
StatusValue

Implements MediaWiki\Auth\PreAuthenticationProvider.

MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAuthentication ( array  $reqs)

Determine whether an authentication may begin

Called from AuthManager::beginAuthentication()

Parameters
AuthenticationRequest[]$reqs
Returns
StatusValue

Implements MediaWiki\Auth\PreAuthenticationProvider.

MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testUserForCreation (   $user,
  $autocreate 
)

Determine whether an account may be created

Parameters
User$userUser 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$autocreateFalse if this is not an auto-creation, or the source of the auto-creation passed to AuthManager::autoCreateUser().
Returns
StatusValue

Implements MediaWiki\Auth\PreAuthenticationProvider.


The documentation for this class was generated from the following file: