MediaWiki  1.27.2
PreAuthenticationProvider.php
Go to the documentation of this file.
1 <?php
24 namespace MediaWiki\Auth;
25 
27 use User;
28 
42 
51  public function testForAuthentication( array $reqs );
52 
61 
76  public function testForAccountCreation( $user, $creator, array $reqs );
77 
88  public function testUserForCreation( $user, $autocreate );
89 
99  public function postAccountCreation( $user, $creator, AuthenticationResponse $response );
100 
109  public function testForAccountLink( $user );
110 
118  public function postAccountLink( $user, AuthenticationResponse $response );
119 
120 }
testUserForCreation($user, $autocreate)
Determine whether an account may be created.
the array() calling protocol came about after MediaWiki 1.4rc1.
An AuthenticationProvider is used by AuthManager when authenticating users.
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for use
postAccountLink($user, AuthenticationResponse $response)
Post-link callback.
This is a value object to hold authentication response data.
this hook is for auditing only $response
Definition: hooks.txt:762
testForAccountCreation($user, $creator, array $reqs)
Determine whether an account creation may begin.
testForAuthentication(array $reqs)
Determine whether an authentication may begin.
postAuthentication($user, AuthenticationResponse $response)
Post-login callback.
testForAccountLink($user)
Determine whether an account may linked to another authentication method.
postAccountCreation($user, $creator, AuthenticationResponse $response)
Post-creation callback.
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a local account $user
Definition: hooks.txt:242
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
A pre-authentication provider is a check that must pass for authentication to proceed.