You are here

Digest.php in Migrate Plus 8.4

File

src/Plugin/migrate_plus/authentication/Digest.php
View source
<?php

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() {
    return [
      'auth' => [
        $this->configuration['username'],
        $this->configuration['password'],
        'digest',
      ],
    ];
  }

}

Classes

Namesort descending Description
Digest Provides digest authentication for the HTTP resource.