Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
CentralAuthRedirectingAuthenticationRequest | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\CentralAuth; |
4 | |
5 | use MediaWiki\Auth\ButtonAuthenticationRequest; |
6 | |
7 | /** |
8 | * Authentication request indicating that login should happen by redirecting |
9 | * to a central login domain. |
10 | */ |
11 | class CentralAuthRedirectingAuthenticationRequest extends ButtonAuthenticationRequest { |
12 | |
13 | /** |
14 | * Property name must match CentralAuthRedirectingPrimaryAuthenticationProvider::NON_LOGIN_WIKI_BUTTONREQUEST_NAME. |
15 | * Set to true by loadFromSubmission() if the button was used. |
16 | */ |
17 | public bool $nonloginwiki = false; |
18 | |
19 | public function __construct() { |
20 | parent::__construct( |
21 | CentralAuthRedirectingPrimaryAuthenticationProvider::NON_LOGIN_WIKI_BUTTONREQUEST_NAME, |
22 | wfMessage( 'centralauth-non-login-wiki-buttonlabel' ), |
23 | wfMessage( 'centralauth-non-login-wiki-buttonlabel-help' ), |
24 | true |
25 | ); |
26 | } |
27 | } |