Skip to content
Snippets Groups Projects
Commit 5f64cf0c authored by Hamza Hasbi's avatar Hamza Hasbi Committed by Lucas Hedding
Browse files

Add: Ntlm plugin for auth

parent 66bab8bc
No related branches found
No related tags found
No related merge requests found
<?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',
],
];
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment