MediaWiki REL1_35
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
70 public function postAuthentication( $user, AuthenticationResponse $response );
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
146 public function postAccountLink( $user, AuthenticationResponse $response );
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:60
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.