public function processChallenge(ClientSession $session, ChallengeMessage $msg)
{
$authMethod = $msg->getAuthMethod();
// look for authenticator
/** @var ClientAuthenticationInterface $ca */
foreach ($this->clientAuthenticators as $ca) {
if (in_array($authMethod, $ca->getAuthMethods())) {
$authenticateMsg = $ca->getAuthenticateFromChallenge($msg);
$session->sendMessage($authenticateMsg);
return;
}
}
$this->emit('challenge', [$session, $msg]);
}