MediaWiki REL1_32
PreAuthenticationProvider.php
Go to the documentation of this file.
1<?php
24namespace MediaWiki\Auth;
25
26use StatusValue;
27use User;
28
45
54 public function testForAuthentication( array $reqs );
55
71
86 public function testForAccountCreation( $user, $creator, array $reqs );
87
106 public function testUserForCreation( $user, $autocreate, array $options = [] );
107
123 public function postAccountCreation( $user, $creator, AuthenticationResponse $response );
124
133 public function testForAccountLink( $user );
134
147
148}
This is a value object to hold authentication response data.
Generic operation result class Has warning/error list, boolean status and arbitrary value.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:47
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
Definition hooks.txt:2050
this hook is for auditing only $response
Definition hooks.txt:813
An AuthenticationProvider is used by AuthManager when authenticating users.
A pre-authentication provider can prevent authentication early on.
testUserForCreation( $user, $autocreate, array $options=[])
Determine whether an account may be created.
testForAccountCreation( $user, $creator, array $reqs)
Determine whether an account creation may begin.
testForAuthentication(array $reqs)
Determine whether an authentication may begin.
testForAccountLink( $user)
Determine whether an account may linked to another authentication method.
postAccountCreation( $user, $creator, AuthenticationResponse $response)
Post-creation callback.
postAccountLink( $user, AuthenticationResponse $response)
Post-link callback.
postAuthentication( $user, AuthenticationResponse $response)
Post-login callback.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))