Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/factor/PhabricatorAuthFactor.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | protected function newChallenge( | ||||
return PhabricatorAuthChallenge::initializeNewChallenge() | return PhabricatorAuthChallenge::initializeNewChallenge() | ||||
->setUserPHID($viewer->getPHID()) | ->setUserPHID($viewer->getPHID()) | ||||
->setSessionPHID($viewer->getSession()->getPHID()) | ->setSessionPHID($viewer->getSession()->getPHID()) | ||||
->setFactorPHID($config->getPHID()) | ->setFactorPHID($config->getPHID()) | ||||
->setWorkflowKey($engine->getWorkflowKey()); | ->setWorkflowKey($engine->getWorkflowKey()); | ||||
} | } | ||||
abstract public function getRequestHasChallengeResponse( | |||||
PhabricatorAuthFactorConfig $config, | |||||
AphrontRequest $response); | |||||
final public function getNewIssuedChallenges( | final public function getNewIssuedChallenges( | ||||
PhabricatorAuthFactorConfig $config, | PhabricatorAuthFactorConfig $config, | ||||
PhabricatorUser $viewer, | PhabricatorUser $viewer, | ||||
array $challenges) { | array $challenges) { | ||||
assert_instances_of($challenges, 'PhabricatorAuthChallenge'); | assert_instances_of($challenges, 'PhabricatorAuthChallenge'); | ||||
$now = PhabricatorTime::getNow(); | $now = PhabricatorTime::getNow(); | ||||
▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines |