public function loginAction(Request $request)
    {
        $oauth = $this->get('campaignchain.security.authentication.client.oauth.authentication');
        $oauth->authenticate(self::RESOURCE_OWNER, $this->applicationInfo, true);
        $wizard = $this->get('campaignchain.core.channel.wizard');
        $wizard->set('profile', $oauth->getProfile());

        // Allow to easily find the Facebook user's ID through the Wizard.
        $wizard->set('linkedin_user_id', $oauth->getProfile()->identifier);
        $tokens[$oauth->getProfile()->identifier] = $oauth->getToken();
        $wizard->set('tokens', $tokens);
        return $this->render('CampaignChainChannelLinkedInBundle:Create:closePopUp.html.twig');
    }