Closed
Description
I think this part is not valid, It couldn't work.
If you just do this:
public function createToken(Request $request, $providerKey)
{
// set the only URL where we should look for auth information
// and only return the token if we're at that URL
$targetUrl = '/login/check';
if (!$this->httpUtils->checkRequestPath($request, $targetUrl)) {
return;
}
// ...
}
The Token is null and then authenticate won't work because needs an instance of Symfony\Component\Security\Core\Authentication\Token\TokenInterface. The exact error is:
ContextErrorException: Catchable Fatal Error:
Argument 1 passed to Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager::authenticate()
must be an instance of Symfony\Component\Security\Core\Authentication\Token\TokenInterface, null given,
It happens here:
I am trying to sort things out. :-)
Thank you in advance!