migrate_plus-8.x-5.x-dev/src/Plugin/migrate_plus/authentication/Digest.php
src/Plugin/migrate_plus/authentication/Digest.php
<?php
declare(strict_types=1);
namespace Drupal\migrate_plus\Plugin\migrate_plus\authentication;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\migrate_plus\AuthenticationPluginBase;
/**
* Provides digest authentication for the HTTP resource.
*
* @Authentication(
* id = "digest",
* title = @Translation("Digest")
* )
*/
class Digest extends AuthenticationPluginBase implements ContainerFactoryPluginInterface {
/**
* {@inheritdoc}
*/
public function getAuthenticationOptions($url): array {
return [
'auth' => [
$this->configuration['username'],
$this->configuration['password'],
'digest',
],
];
}
}
