You are here

public function ExternalAuthInterface::linkExistingAccount in External Authentication 8

Same name and namespace in other branches
  1. 2.0.x src/ExternalAuthInterface.php \Drupal\externalauth\ExternalAuthInterface::linkExistingAccount()

Link a pre-existing Drupal user to a given authname.

Parameters

string $authname: The unique, external authentication name provided by authentication provider.

string $provider: The module providing external authentication.

\Drupal\user\UserInterface $account: The existing Drupal account to link.

1 method overrides ExternalAuthInterface::linkExistingAccount()
ExternalAuth::linkExistingAccount in src/ExternalAuth.php
Link a pre-existing Drupal user to a given authname.

File

src/ExternalAuthInterface.php, line 118

Class

ExternalAuthInterface
Interface ExternalAuthInterface.

Namespace

Drupal\externalauth

Code

public function linkExistingAccount($authname, $provider, UserInterface $account);