public function attachProviderConfig($config)
public function attachProviderConfig($config)
Parameters
PhabricatorAuthProviderConfig | $config |
Return
wild |
public function hasProviderConfig()
public function hasProviderConfig()
Return
wild |
public function getProviderConfig()
public function getProviderConfig()
Return
wild |
public function getProviderConfigPHID()
public function getProviderConfigPHID()
Return
wild |
public function getConfigurationHelp()
public function getConfigurationHelp()
Return
wild |
public function getDefaultProviderConfig()
public function getDefaultProviderConfig()
Return
wild |
public function getNameForCreate()
public function getNameForCreate()
Return
wild |
public function getDescriptionForCreate()
public function getDescriptionForCreate()
Return
wild |
public function getProviderKey()
public function getProviderKey()
Return
wild |
public function getProviderType()
public function getProviderType()
Return
wild |
public function getProviderDomain()
public function getProviderDomain()
Return
wild |
public static function getAllBaseProviders()
public static function getAllBaseProviders()
Return
wild |
public static function getAllProviders()
public static function getAllProviders()
Return
wild |
public static function getAllEnabledProviders()
public static function getAllEnabledProviders()
Return
wild |
public static function getEnabledProviderByKey($provider_key)
public static function getEnabledProviderByKey($provider_key)
Parameters
$provider_key |
Return
wild |
abstract public function getProviderName()
abstract public function getProviderName()
Return
wild |
abstract public function getAdapter()
abstract public function getAdapter()
Return
wild |
public function isEnabled()
public function isEnabled()
Return
wild |
public function shouldAllowLogin()
public function shouldAllowLogin()
Return
wild |
public function shouldAllowRegistration()
public function shouldAllowRegistration()
Return
wild |
public function shouldAllowAccountLink()
public function shouldAllowAccountLink()
Return
wild |
public function shouldAllowAccountUnlink()
public function shouldAllowAccountUnlink()
Return
wild |
public function shouldTrustEmails()
public function shouldTrustEmails()
Return
wild |
public function shouldAllowEmailTrustConfiguration()
public function shouldAllowEmailTrustConfiguration()
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)
public function buildLoginForm($controller)
Parameters
PhabricatorAuthStartController | $controller |
Return
wild |
public function buildInviteForm($controller)
public function buildInviteForm($controller)
Parameters
PhabricatorAuthStartController | $controller |
Return
wild |
abstract public function processLoginRequest($controller)
abstract public function processLoginRequest($controller)
Parameters
PhabricatorAuthLoginController | $controller |
Return
wild |
public function buildLinkForm($controller)
public function buildLinkForm($controller)
Parameters
$controller |
Return
wild |
public function shouldAllowAccountRefresh()
public function shouldAllowAccountRefresh()
Return
wild |
public function buildRefreshForm($controller)
public function buildRefreshForm($controller)
Parameters
PhabricatorAuthLinkController | $controller |
Return
wild |
protected function renderLoginForm($request, $mode)
protected function renderLoginForm($request, $mode)
Parameters
AphrontRequest | $request | |
$mode |
Return
wild |
public function createProviders()
public function createProviders()
Return
wild |
protected function willSaveAccount($account)
protected function willSaveAccount($account)
Parameters
PhabricatorExternalAccount | $account |
Return
wild |
final protected function newExternalAccountForIdentifiers($identifiers)
final protected function newExternalAccountForIdentifiers($identifiers)
Parameters
array | $identifiers |
Return
wild |
final protected function newExternalAccountForUser($user)
final protected function newExternalAccountForUser($user)
Parameters
PhabricatorUser | $user |
Return
wild |
private function didUpdateAccount($account)
private function didUpdateAccount($account)
Parameters
PhabricatorExternalAccount | $account |
Return
wild |
public function getLoginURI()
public function getLoginURI()
Return
wild |
public function getSettingsURI()
public function getSettingsURI()
Return
wild |
public function getStartURI()
public function getStartURI()
Return
wild |
public function isDefaultRegistrationProvider()
public function isDefaultRegistrationProvider()
Return
wild |
public function shouldRequireRegistrationPassword()
public function shouldRequireRegistrationPassword()
Return
wild |
public function newDefaultExternalAccount()
public function newDefaultExternalAccount()
Return
wild |
protected function newExternalAccount()
protected function newExternalAccount()
Return
wild |
public function getLoginOrder()
public function getLoginOrder()
Return
wild |
protected function getLoginIcon()
protected function getLoginIcon()
Return
wild |
public function newIconView()
public function newIconView()
Return
wild |
public function isLoginFormAButton()
public function isLoginFormAButton()
Return
wild |
public function renderConfigPropertyTransactionTitle($xaction)
public function renderConfigPropertyTransactionTitle($xaction)
Parameters
PhabricatorAuthProviderConfigTransaction | $xaction |
Return
wild |
public function readFormValuesFromProvider()
public function readFormValuesFromProvider()
Return
wild |
public function readFormValuesFromRequest($request)
public function readFormValuesFromRequest($request)
Parameters
AphrontRequest | $request |
Return
wild |
public function processEditForm($request, $values)
public function processEditForm($request, $values)
Parameters
AphrontRequest | $request | |
array | $values |
Return
wild |
public function extendEditForm($request, $form, $values, $issues)
public function extendEditForm($request, $form, $values, $issues)
Parameters
AphrontRequest | $request | |
AphrontFormView | $form | |
array | $values | |
array | $issues |
Return
wild |
public function willRenderLinkedAccount($viewer, $item, $account)
public function willRenderLinkedAccount($viewer, $item, $account)
Parameters
PhabricatorUser | $viewer | |
PHUIObjectItemView | $item | |
PhabricatorExternalAccount | $account |
Return
wild |
public function hasSetupStep()
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
bool | True if this provider uses two-step configuration. |
protected function renderStandardLoginButton($request, $mode, $attributes)
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 | $request | HTTP request. |
string | $mode | Request mode string. |
map | $attributes | Additional parameters, see above. |
Return
wild | Log in button. |
public function renderConfigurationFooter()
public function renderConfigurationFooter()
Return
wild |
public function getAuthCSRFCode($request)
public function getAuthCSRFCode($request)
Parameters
AphrontRequest | $request |
Return
wild |
protected function verifyAuthCSRFCode($request, $actual)
protected function verifyAuthCSRFCode($request, $actual)
Parameters
AphrontRequest | $request | |
$actual |
Return
wild |
public function supportsAutoLogin()
public function supportsAutoLogin()
Return
wild |
public function getAutoLoginURI($request)
public function getAutoLoginURI($request)
Parameters
AphrontRequest | $request |
Return
wild |
protected function getContentSecurityPolicyFormActions()
protected function getContentSecurityPolicyFormActions()
Return
wild |