You are here

public function ExternalAuthInterface::loginRegister in External Authentication 8

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

Login and optionally register a Drupal user based on an external authname.

Parameters

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

string $provider: The module providing external authentication.

array $account_data: An array of additional properties to be saved with the user entity.

mixed $authmap_data: Additional data to be stored in the authmap entry.

Return value

\Drupal\user\UserInterface The logged in, and optionally registered, Drupal user.

1 method overrides ExternalAuthInterface::loginRegister()
ExternalAuth::loginRegister in src/ExternalAuth.php
Login and optionally register a Drupal user based on an external authname.

File

src/ExternalAuthInterface.php, line 85

Class

ExternalAuthInterface
Interface ExternalAuthInterface.

Namespace

Drupal\externalauth

Code

public function loginRegister($authname, $provider, array $account_data = [], $authmap_data = NULL);