You are here

SharedSecret.php in DRD Agent 4.0.x

Same filename and directory in other branches
  1. 8.3 src/Agent/Auth/SharedSecret.php

File

src/Agent/Auth/SharedSecret.php
View source
<?php

namespace Drupal\drd_agent\Agent\Auth;


/**
 * Implements the SharedSecret authentication method.
 */
class SharedSecret extends Base {

  /**
   * {@inheritdoc}
   */
  public function validate(array $settings) : bool {
    return $settings['secret'] === $this->storedSettings['secret'];
  }

}

Classes

Namesort descending Description
SharedSecret Implements the SharedSecret authentication method.