Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/adapter/PhutilAuthAdapter.php
| Show All 28 Lines | protected function newAccountIdentifiers() { | ||||
| $raw_identifier = $this->getAccountID(); | $raw_identifier = $this->getAccountID(); | ||||
| if ($raw_identifier !== null) { | if ($raw_identifier !== null) { | ||||
| $identifiers[] = $this->newAccountIdentifier($raw_identifier); | $identifiers[] = $this->newAccountIdentifier($raw_identifier); | ||||
| } | } | ||||
| return $identifiers; | return $identifiers; | ||||
| } | } | ||||
| final protected function newAccountIdentifier($raw_identifier) { | |||||
| return id(new PhabricatorExternalAccountIdentifier()) | |||||
| ->setIdentifierRaw($raw_identifier); | |||||
| } | |||||
| /** | /** | ||||
| * Get a unique identifier associated with the account. | * Get a unique identifier associated with the account. | ||||
| * | * | ||||
| * This identifier should be permanent, immutable, and uniquely identify | * This identifier should be permanent, immutable, and uniquely identify | ||||
| * the account. If possible, it should be nonsensitive. For providers that | * the account. If possible, it should be nonsensitive. For providers that | ||||
| * have a GUID or PHID value for accounts, these are the best values to use. | * have a GUID or PHID value for accounts, these are the best values to use. | ||||
| * | * | ||||
| * You can implement @{method:newAccountIdentifiers} instead if a provider | * You can implement @{method:newAccountIdentifiers} instead if a provider | ||||
| ▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines | |||||