What is the actual behavior?
Empty string returned from Linkedin::getLoginUrl()
Expected Behavior
Return of a URL for the user to authenticate via
Steps to Reproduce
$appId = $this->container->getParameter('happyr.linkedin.app_id');
$appSecret = $this->container->getParameter('happyr.linkedin.app_secret');
$linkedIn = new LinkedIn($appId, $appSecret);
if ($linkedIn->isAuthenticated()) {
//we know that the user is authenticated now. Start query the API
$user=$linkedIn->get('v1/people/~:(firstName,lastName)');
echo "Welcome ".$user['firstName'];
exit();
} elseif ($linkedIn->hasError()) {
echo "User canceled the login.";
exit();
}
//if not authenticated
$url = $linkedIn->getLoginUrl();
echo "<a href='$url'>Login with LinkedIn</a>";
exit();
Actual Behavior
What is the actual behavior? Empty string returned from Linkedin::getLoginUrl()
Expected Behavior
Return of a URL for the user to authenticate via
Steps to Reproduce