public function authenticateWithToken(TokenInterface $token, Request $request, string $providerKey = null)
    {
        $this->migrateSession($request, $token, $providerKey);
        $this->tokenStorage->setToken($token);

        if (null !== $this->dispatcher) {
            $loginEvent = new InteractiveLoginEvent($request, $token);
            $this->dispatcher->dispatch($loginEvent, SecurityEvents::INTERACTIVE_LOGIN);
        }
    }
public function authenticateWithToken(TokenInterface $token, Request $request, string $providerKey = null)
    {
        $this->migrateSession($request, $token, $providerKey);
        $this->tokenStorage->setToken($token);

        if (null !== $this->dispatcher) {
            $loginEvent = new InteractiveLoginEvent($request, $token);
            $this->dispatcher->dispatch($loginEvent, SecurityEvents::INTERACTIVE_LOGIN);
        }
    }
public function authenticateWithToken ( TokenInterface $ token , Request $ request , string $ providerKey = null ) { $ this -> migrateSession ( $ request , $ token , $ providerKey ) ; $ this -> tokenStorage -> setToken ( $ token ) ; if ( null !== $ this -> dispatcher ) { $ loginEvent = new InteractiveLoginEvent ( $ request , $ token ) ; $ this -> dispatcher -> dispatch ( $ loginEvent , SecurityEvents :: INTERACTIVE_LOGIN ) ; } }
Authenticates the given token in the system.

@param string $providerKey The name of the provider/firewall being used for authentication
Authenticates the given token in the system .