abstract public function getFactorName()
abstract public function getFactorName()
Return
wild |
abstract public function getFactorShortName()
abstract public function getFactorShortName()
Return
wild |
abstract public function getFactorKey()
abstract public function getFactorKey()
Return
wild |
abstract public function getFactorCreateHelp()
abstract public function getFactorCreateHelp()
Return
wild |
abstract public function getFactorDescription()
abstract public function getFactorDescription()
Return
wild |
abstract public function processAddFactorForm($provider, $form, $request, $user)
abstract public function processAddFactorForm($provider, $form, $request, $user)
Parameters
PhabricatorAuthFactorProvider | $provider | |
AphrontFormView | $form | |
AphrontRequest | $request | |
PhabricatorUser | $user |
Return
wild |
abstract public function renderValidateFactorForm($config, $form, $viewer, $validation_result)
abstract public function renderValidateFactorForm($config, $form, $viewer, $validation_result)
Parameters
PhabricatorAuthFactorConfig | $config | |
AphrontFormView | $form | |
PhabricatorUser | $viewer | |
PhabricatorAuthFactorResult | $validation_result |
Return
wild |
public function getParameterName($config, $name)
public function getParameterName($config, $name)
Parameters
PhabricatorAuthFactorConfig | $config | |
$name |
Return
wild |
public static function getAllFactors()
public static function getAllFactors()
Return
wild |
protected function newConfigForUser($user)
protected function newConfigForUser($user)
Parameters
PhabricatorUser | $user |
Return
wild |
protected function newResult()
protected function newResult()
Return
wild |
public function newIconView()
public function newIconView()
Return
wild |
public function canCreateNewProvider()
public function canCreateNewProvider()
Return
wild |
public function getProviderCreateDescription()
public function getProviderCreateDescription()
Return
wild |
public function canCreateNewConfiguration($provider, $user)
public function canCreateNewConfiguration($provider, $user)
Parameters
PhabricatorAuthFactorProvider | $provider | |
PhabricatorUser | $user |
Return
wild |
public function getConfigurationCreateDescription($provider, $user)
public function getConfigurationCreateDescription($provider, $user)
Parameters
PhabricatorAuthFactorProvider | $provider | |
PhabricatorUser | $user |
Return
wild |
public function getConfigurationListDetails($config, $provider, $viewer)
public function getConfigurationListDetails($config, $provider, $viewer)
Parameters
PhabricatorAuthFactorConfig | $config | |
PhabricatorAuthFactorProvider | $provider | |
PhabricatorUser | $viewer |
Return
wild |
public function newEditEngineFields($engine, $provider)
public function newEditEngineFields($engine, $provider)
Parameters
PhabricatorEditEngine | $engine | |
PhabricatorAuthFactorProvider | $provider |
Return
wild |
public function newChallengeStatusView($config, $provider, $viewer, $challenge)
public function newChallengeStatusView($config, $provider, $viewer, $challenge)
Parameters
PhabricatorAuthFactorConfig | $config | |
PhabricatorAuthFactorProvider | $provider | |
PhabricatorUser | $viewer | |
PhabricatorAuthChallenge | $challenge |
Return
wild |
public function isContactNumberFactor()
public function isContactNumberFactor()
Is this a factor which depends on the user's contact number?
If a user has a "contact number" factor configured, they can not modify or switch their primary contact number.
Return
bool | True if this factor should lock contact numbers. |
abstract public function getEnrollDescription($provider, $user)
abstract public function getEnrollDescription($provider, $user)
Parameters
PhabricatorAuthFactorProvider | $provider | |
PhabricatorUser | $user |
Return
wild |
public function getEnrollButtonText($provider, $user)
public function getEnrollButtonText($provider, $user)
Parameters
PhabricatorAuthFactorProvider | $provider | |
PhabricatorUser | $user |
Return
wild |
public function getFactorOrder()
public function getFactorOrder()
Return
wild |
final public function newSortVector()
final public function newSortVector()
Return
wild |
protected function newChallenge($config, $viewer)
protected function newChallenge($config, $viewer)
Parameters
PhabricatorAuthFactorConfig | $config | |
PhabricatorUser | $viewer |
Return
wild |
abstract public function getRequestHasChallengeResponse($config, $response)
abstract public function getRequestHasChallengeResponse($config, $response)
Parameters
PhabricatorAuthFactorConfig | $config | |
AphrontRequest | $response |
Return
wild |
final public function getNewIssuedChallenges($config, $viewer, $challenges)
final public function getNewIssuedChallenges($config, $viewer, $challenges)
Parameters
PhabricatorAuthFactorConfig | $config | |
PhabricatorUser | $viewer | |
array | $challenges |
Return
wild |
abstract protected function newIssuedChallenges($config, $viewer, $challenges)
abstract protected function newIssuedChallenges($config, $viewer, $challenges)
Parameters
PhabricatorAuthFactorConfig | $config | |
PhabricatorUser | $viewer | |
array | $challenges |
Return
wild |
final public function getResultFromIssuedChallenges($config, $viewer, $challenges)
final public function getResultFromIssuedChallenges($config, $viewer, $challenges)
Parameters
PhabricatorAuthFactorConfig | $config | |
PhabricatorUser | $viewer | |
array | $challenges |
Return
wild |
final public function getResultForPrompt($config, $viewer, $request, $challenges)
final public function getResultForPrompt($config, $viewer, $request, $challenges)
Parameters
PhabricatorAuthFactorConfig | $config | |
PhabricatorUser | $viewer | |
AphrontRequest | $request | |
array | $challenges |
Return
wild |
protected function newResultForPrompt($config, $viewer, $request, $challenges)
protected function newResultForPrompt($config, $viewer, $request, $challenges)
Parameters
PhabricatorAuthFactorConfig | $config | |
PhabricatorUser | $viewer | |
AphrontRequest | $request | |
array | $challenges |
Return
wild |
abstract protected function newResultFromIssuedChallenges($config, $viewer, $challenges)
abstract protected function newResultFromIssuedChallenges($config, $viewer, $challenges)
Parameters
PhabricatorAuthFactorConfig | $config | |
PhabricatorUser | $viewer | |
array | $challenges |
Return
wild |
final public function getResultFromChallengeResponse($config, $viewer, $request, $challenges)
final public function getResultFromChallengeResponse($config, $viewer, $request, $challenges)
Parameters
PhabricatorAuthFactorConfig | $config | |
PhabricatorUser | $viewer | |
AphrontRequest | $request | |
array | $challenges |
Return
wild |
abstract protected function newResultFromChallengeResponse($config, $viewer, $request, $challenges)
abstract protected function newResultFromChallengeResponse($config, $viewer, $request, $challenges)
Parameters
PhabricatorAuthFactorConfig | $config | |
PhabricatorUser | $viewer | |
AphrontRequest | $request | |
array | $challenges |
Return
wild |
final protected function newAutomaticControl($result)
final protected function newAutomaticControl($result)
Parameters
PhabricatorAuthFactorResult | $result |
Return
wild |
private function newWaitControl($result)
private function newWaitControl($result)
Parameters
PhabricatorAuthFactorResult | $result |
Return
wild |
private function newAnsweredControl($result)
private function newAnsweredControl($result)
Parameters
PhabricatorAuthFactorResult | $result |
Return
wild |
private function newErrorControl($result)
private function newErrorControl($result)
Parameters
PhabricatorAuthFactorResult | $result |
Return
wild |
private function newContinueControl($result)
private function newContinueControl($result)
Parameters
PhabricatorAuthFactorResult | $result |
Return
wild |
final protected function loadMFASyncToken($provider, $request, $form, $user)
final protected function loadMFASyncToken($provider, $request, $form, $user)
Parameters
PhabricatorAuthFactorProvider | $provider | |
AphrontRequest | $request | |
AphrontFormView | $form | |
PhabricatorUser | $user |
Return
wild |
protected function newMFASyncTokenProperties($provider, $user)
protected function newMFASyncTokenProperties($provider, $user)
Parameters
PhabricatorAuthFactorProvider | $provider | |
PhabricatorUser | $user |
Return
wild |
private function getMFASyncTokenFormKey()
private function getMFASyncTokenFormKey()
Return
wild |
private function getMFASyncTokenTTL()
private function getMFASyncTokenTTL()
Return
wild |
final protected function getChallengeForCurrentContext($config, $viewer, $challenges)
final protected function getChallengeForCurrentContext($config, $viewer, $challenges)
Parameters
PhabricatorAuthFactorConfig | $config | |
PhabricatorUser | $viewer | |
array | $challenges |
Return
wild |
final protected function newQRCode($uri)
final protected function newQRCode($uri)
Parameters
$uri |
Return
wild |
final protected function getInstallDisplayName()
final protected function getInstallDisplayName()
Return
wild |
final protected function getChallengeResponseParameterName($config)
final protected function getChallengeResponseParameterName($config)
Parameters
PhabricatorAuthFactorConfig | $config |
Return
wild |
final protected function getChallengeResponseFromRequest($config, $request)
final protected function getChallengeResponseFromRequest($config, $request)
Parameters
PhabricatorAuthFactorConfig | $config | |
AphrontRequest | $request |
Return
wild |
final protected function hasCSRF($config)
final protected function hasCSRF($config)
Parameters
PhabricatorAuthFactorConfig | $config |
Return
wild |
final protected function loadConfigurationsForProvider($provider, $user)
final protected function loadConfigurationsForProvider($provider, $user)
Parameters
PhabricatorAuthFactorProvider | $provider | |
PhabricatorUser | $user |
Return
wild |
final protected function isAuthResult($object)
final protected function isAuthResult($object)
Parameters
$object |
Return
wild |