Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorAuthProvider

abstract class PhabricatorAuthProvider
Phabricator Technical Documentation (Auth)

This class is not documented.

Methods

public function attachProviderConfig($config)

This method is not documented.
Parameters
PhabricatorAuthProviderConfig$config
Return
wild

public function hasProviderConfig()

This method is not documented.
Return
wild

public function getProviderConfig()

This method is not documented.
Return
wild

public function getProviderConfigPHID()

This method is not documented.
Return
wild

public function getConfigurationHelp()

This method is not documented.
Return
wild

public function getDefaultProviderConfig()

This method is not documented.
Return
wild

public function getNameForCreate()

This method is not documented.
Return
wild

public function getDescriptionForCreate()

This method is not documented.
Return
wild

public function getProviderKey()

This method is not documented.
Return
wild

public function getProviderType()

This method is not documented.
Return
wild

public function getProviderDomain()

This method is not documented.
Return
wild

public static function getAllBaseProviders()

This method is not documented.
Return
wild

public static function getAllProviders()

This method is not documented.
Return
wild

public static function getAllEnabledProviders()

This method is not documented.
Return
wild

public static function getEnabledProviderByKey($provider_key)

This method is not documented.
Parameters
$provider_key
Return
wild

abstract public function getProviderName()

This method is not documented.
Return
wild

abstract public function getAdapter()

This method is not documented.
Return
wild

public function isEnabled()

This method is not documented.
Return
wild

public function shouldAllowLogin()

This method is not documented.
Return
wild

public function shouldAllowRegistration()

This method is not documented.
Return
wild

public function shouldAllowAccountLink()

This method is not documented.
Return
wild

public function shouldAllowAccountUnlink()

This method is not documented.
Return
wild

public function shouldTrustEmails()

This method is not documented.
Return
wild

Should we allow the adapter to be marked as "trusted". This is true for all adapters except those that allow the user to type in emails (see PhabricatorPasswordAuthProvider).

Return
wild

public function buildLoginForm($controller)

This method is not documented.
Parameters
PhabricatorAuthStartController$controller
Return
wild

public function buildInviteForm($controller)

This method is not documented.
Parameters
PhabricatorAuthStartController$controller
Return
wild

abstract public function processLoginRequest($controller)

This method is not documented.
Parameters
PhabricatorAuthLoginController$controller
Return
wild

public function buildLinkForm($controller)

This method is not documented.
Parameters
$controller
Return
wild

public function shouldAllowAccountRefresh()

This method is not documented.
Return
wild

public function buildRefreshForm($controller)

This method is not documented.
Parameters
PhabricatorAuthLinkController$controller
Return
wild

protected function renderLoginForm($request, $mode)

This method is not documented.
Parameters
AphrontRequest$request
$mode
Return
wild

public function createProviders()

This method is not documented.
Return
wild

protected function willSaveAccount($account)

This method is not documented.
Parameters
PhabricatorExternalAccount$account
Return
wild

final protected function newExternalAccountForIdentifiers($identifiers)

This method is not documented.
Parameters
array$identifiers
Return
wild

final protected function newExternalAccountForUser($user)

This method is not documented.
Parameters
PhabricatorUser$user
Return
wild

private function didUpdateAccount($account)

This method is not documented.
Parameters
PhabricatorExternalAccount$account
Return
wild

public function getLoginURI()

This method is not documented.
Return
wild

public function getSettingsURI()

This method is not documented.
Return
wild

public function getStartURI()

This method is not documented.
Return
wild
This method is not documented.
Return
wild
This method is not documented.
Return
wild

public function newDefaultExternalAccount()

This method is not documented.
Return
wild

protected function newExternalAccount()

This method is not documented.
Return
wild

public function getLoginOrder()

This method is not documented.
Return
wild

protected function getLoginIcon()

This method is not documented.
Return
wild

public function newIconView()

This method is not documented.
Return
wild

public function isLoginFormAButton()

This method is not documented.
Return
wild

public function renderConfigPropertyTransactionTitle($xaction)

This method is not documented.
Parameters
PhabricatorAuthProviderConfigTransaction$xaction
Return
wild

public function readFormValuesFromProvider()

This method is not documented.
Return
wild

public function readFormValuesFromRequest($request)

This method is not documented.
Parameters
AphrontRequest$request
Return
wild

public function processEditForm($request, $values)

This method is not documented.
Parameters
AphrontRequest$request
array$values
Return
wild

public function extendEditForm($request, $form, $values, $issues)

This method is not documented.
Parameters
AphrontRequest$request
AphrontFormView$form
array$values
array$issues
Return
wild

public function willRenderLinkedAccount($viewer, $item, $account)

This method is not documented.
Parameters
PhabricatorUser$viewer
PHUIObjectItemView$item
PhabricatorExternalAccount$account
Return
wild

public function hasSetupStep()

Return true to use a two-step configuration (setup, configure) instead of the default single-step configuration. In practice, this means that creating a new provider instance will redirect back to the edit page instead of the provider list.

Return
boolTrue if this provider uses two-step configuration.

protected function renderStandardLoginButton($request, $mode, $attributes)

Render a standard login/register button element.

The $attributes parameter takes these keys:

  • uri: URI the button should take the user to when clicked.
  • method: Optional HTTP method the button should use, defaults to GET.
Parameters
AphrontRequest$requestHTTP request.
string$modeRequest mode string.
map$attributesAdditional parameters, see above.
Return
wildLog in button.

public function renderConfigurationFooter()

This method is not documented.
Return
wild

public function getAuthCSRFCode($request)

This method is not documented.
Parameters
AphrontRequest$request
Return
wild

protected function verifyAuthCSRFCode($request, $actual)

This method is not documented.
Parameters
AphrontRequest$request
$actual
Return
wild

public function supportsAutoLogin()

This method is not documented.
Return
wild

public function getAutoLoginURI($request)

This method is not documented.
Parameters
AphrontRequest$request
Return
wild
This method is not documented.
Return
wild