/** * do the athentication on linkedin and redirect to linkedin * * @author Matthias Pfefferle * @link https://www.linkedin.com/uas/oauth/authenticate */ public function doAuthentication() { $lRequestToken = self::getRequestToken(); $lRequest = OAuthClient::prepareRequest($this->getConsumer(), $lRequestToken, "GET", "https://www.linkedin.com/uas/oauth/authenticate"); // redirect header("Location: " . $lRequest->to_url()); // do nothing more exit; }
/** * do the athentication on twitter and redirect to twitter * * @author Matthias Pfefferle * @link http://dev.twitter.com/pages/sign_in_with_twitter */ public function doAuthentication() { $lRequestToken = self::getRequestToken(); $lRequest = OAuthClient::prepareRequest($this->getConsumer(), $lRequestToken, "GET", "http://api.yigg.local/oauth/1/authorize"); // redirect header("Location: " . $lRequest->to_url()); // do nothing more exit; }