MediaWiki master
PreAuthenticationProvider.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Auth;
8
10use StatusValue;
11
28
37 public function testForAuthentication( array $reqs );
38
52 public function postAuthentication( $user, AuthenticationResponse $response );
53
66 public function testForAccountCreation( $user, $creator, array $reqs );
67
89 public function testUserForCreation( $user, $autocreate, array $options = [] );
90
104 public function postAccountCreation( $user, $creator, AuthenticationResponse $response );
105
113 public function testForAccountLink( $user );
114
125 public function postAccountLink( $user, AuthenticationResponse $response );
126
127}
This is a value object to hold authentication response data.
User class for the MediaWiki software.
Definition User.php:110
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Authentication providers are used by AuthManager when authenticating users.
Pre-authentication providers 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.