public function authenticate(string $username, string $password)
{
// prepare the callback handler
$callbackHandler = new SecurityAssociationHandler(new SimplePrincipal($username), $password);
// authenticate the passed username/password combination
return $this->authenticateByUsernameAndCallbackHandler($username, $callbackHandler);
}