|
@@ 461-473 (lines=13) @@
|
| 458 |
|
} |
| 459 |
|
} elseif ( $state['primaryResponse'] === null ) { |
| 460 |
|
$provider = $this->getAuthenticationProvider( $state['primary'] ); |
| 461 |
|
if ( !$provider instanceof PrimaryAuthenticationProvider ) { |
| 462 |
|
// Configuration changed? Force them to start over. |
| 463 |
|
// @codeCoverageIgnoreStart |
| 464 |
|
$ret = AuthenticationResponse::newFail( |
| 465 |
|
wfMessage( 'authmanager-authn-not-in-progress' ) |
| 466 |
|
); |
| 467 |
|
$this->callMethodOnProviders( 7, 'postAuthentication', |
| 468 |
|
[ User::newFromName( $guessUserName ) ?: null, $ret ] |
| 469 |
|
); |
| 470 |
|
$session->remove( 'AuthManager::authnState' ); |
| 471 |
|
return $ret; |
| 472 |
|
// @codeCoverageIgnoreEnd |
| 473 |
|
} |
| 474 |
|
$id = $provider->getUniqueId(); |
| 475 |
|
$res = $provider->continuePrimaryAuthentication( $reqs ); |
| 476 |
|
switch ( $res->status ) { |
|
@@ 510-522 (lines=13) @@
|
| 507 |
|
$res = $state['primaryResponse']; |
| 508 |
|
if ( $res->username === null ) { |
| 509 |
|
$provider = $this->getAuthenticationProvider( $state['primary'] ); |
| 510 |
|
if ( !$provider instanceof PrimaryAuthenticationProvider ) { |
| 511 |
|
// Configuration changed? Force them to start over. |
| 512 |
|
// @codeCoverageIgnoreStart |
| 513 |
|
$ret = AuthenticationResponse::newFail( |
| 514 |
|
wfMessage( 'authmanager-authn-not-in-progress' ) |
| 515 |
|
); |
| 516 |
|
$this->callMethodOnProviders( 7, 'postAuthentication', |
| 517 |
|
[ User::newFromName( $guessUserName ) ?: null, $ret ] |
| 518 |
|
); |
| 519 |
|
$session->remove( 'AuthManager::authnState' ); |
| 520 |
|
return $ret; |
| 521 |
|
// @codeCoverageIgnoreEnd |
| 522 |
|
} |
| 523 |
|
|
| 524 |
|
if ( $provider->accountCreationType() === PrimaryAuthenticationProvider::TYPE_LINK && |
| 525 |
|
$res->linkRequest && |