Commit 5f64cf0c authored by hamzahasbi's avatar hamzahasbi Committed by Lucas Hedding
Browse files

Add: Ntlm plugin for auth

parent 66bab8bc
<?php
namespace Drupal\migrate_plus\Plugin\migrate_plus\authentication;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\migrate_plus\AuthenticationPluginBase;
/**
* Provides NTLM (Microsoft NTLM) authentication for the HTTP resource.
*
* @Authentication(
* id = "ntlm",
* title = @Translation("Ntlm")
* )
*/
class Ntlm extends AuthenticationPluginBase implements ContainerFactoryPluginInterface {
/**
* {@inheritdoc}
*/
public function getAuthenticationOptions() {
return [
'auth' => [
$this->configuration['username'],
$this->configuration['password'],
'ntlm',
],
];
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment