You are here

public function Ntlm::getAuthenticationOptions in Migrate Plus 8.5

Performs authentication, returning any options to be added to the request.

@link http://docs.guzzlephp.org/en/latest/request-options.html

Return value

array Options (such as Authentication headers) to be added to the request.

Overrides AuthenticationPluginInterface::getAuthenticationOptions

File

src/Plugin/migrate_plus/authentication/Ntlm.php, line 21

Class

Ntlm
Provides NTLM (Microsoft NTLM) authentication for the HTTP resource.

Namespace

Drupal\migrate_plus\Plugin\migrate_plus\authentication

Code

public function getAuthenticationOptions() {
  return [
    'auth' => [
      $this->configuration['username'],
      $this->configuration['password'],
      'ntlm',
    ],
  ];
}