You are here

interface LoginValidatorInterface in Lightweight Directory Access Protocol (LDAP) 8.4

Handles the actual testing of credentials and authentication of users.

Hierarchy

Expanded class hierarchy of LoginValidatorInterface

All classes that implement LoginValidatorInterface

File

ldap_authentication/src/Controller/LoginValidatorInterface.php, line 13

Namespace

Drupal\ldap_authentication\Controller
View source
interface LoginValidatorInterface {

  /**
   * Perform the actual logging in.
   */
  public function processLogin() : void;

  /**
   * Check if exclusion criteria match.
   *
   * @param string $authName
   *   Authname.
   * @param \Symfony\Component\Ldap\Entry $ldap_user
   *   LDAP Entry.
   *
   * @return bool
   *   Exclusion result.
   */
  public function checkAllowedExcluded(string $authName, Entry $ldap_user) : bool;

  /**
   * Returns the derived user account.
   *
   * @return \Drupal\user\UserInterface|null
   *   User account.
   */
  public function getDrupalUser() : ?UserInterface;

  /**
   * Credentials are tested.
   *
   * @return int
   *   Returns the authentication result.
   */
  public function testCredentials() : int;

}

Members

Namesort descending Modifiers Type Description Overrides
LoginValidatorInterface::checkAllowedExcluded public function Check if exclusion criteria match. 1
LoginValidatorInterface::getDrupalUser public function Returns the derived user account. 1
LoginValidatorInterface::processLogin public function Perform the actual logging in. 2
LoginValidatorInterface::testCredentials public function Credentials are tested. 2