You are here

class SharedSecret in DRD Agent 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Agent/Auth/SharedSecret.php \Drupal\drd_agent\Agent\Auth\SharedSecret

Implements the SharedSecret authentication method.

Hierarchy

Expanded class hierarchy of SharedSecret

1 string reference to 'SharedSecret'
Base::getMethods in src/Agent/Auth/Base.php
Get a list of all implemented authentication methods.

File

src/Agent/Auth/SharedSecret.php, line 8

Namespace

Drupal\drd_agent\Agent\Auth
View source
class SharedSecret extends Base {

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

}

Members

Namesort descending Modifiers Type Description Overrides
Base::$currentUser protected property
Base::$state protected property
Base::$storedSettings protected property All the settings of the implementing authentication method.
Base::$userAuth protected property
Base::create public static function
Base::getMethods public static function Get a list of all implemented authentication methods. Overrides BaseInterface::getMethods
Base::validateUuid final public function Verify if the given UUID is authorised to access this site. Overrides BaseInterface::validateUuid
Base::__construct public function Base constructor.
SharedSecret::validate public function Validate authentication of the current request with the given settings. Overrides BaseInterface::validate