Symfony\Component\Security\Core\Authentication\Provider\UserAuthenticationProvider::checkAuthentication
Does additional checks on the user and token (like validating the credentials).
Signature
protected function checkAuthentication(UserInterface
$user,
UsernamePasswordToken
$token )
Parameters
$user
— Symfony\Component\Security\Core\User\UserInterface- The retrieved UserInterface instance
$token
— Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken- The UsernamePasswordToken token to be authenticated
Errors/Exceptions
-
AuthenticationException
- if the credentials could not be validated