Php linkedin未从yii登录
当我打开LinkedIn站点时,我从yii成功登录后,我正在将LinkedIn与yii集成,但它仍然要求提供电子邮件和密码才能登录。 以下是控制器中使用的代码:Php linkedin未从yii登录,php,yii,oauth-2.0,linkedin,yii-extensions,Php,Yii,Oauth 2.0,Linkedin,Yii Extensions,当我打开LinkedIn站点时,我从yii成功登录后,我正在将LinkedIn与yii集成,但它仍然要求提供电子邮件和密码才能登录。 以下是控制器中使用的代码: if ($eauth->authenticate()) { $identity = new EAuthUserIdentity($eauth); if ($identity->authenticate()) {
if ($eauth->authenticate()) {
$identity = new EAuthUserIdentity($eauth);
if ($identity->authenticate()) {
// Yii::app()->user->login($identity);
$this->_process_auth_user($identity->email, $identity->name, $identity->provider);
}
其中,EAuthUserIdentity中的as代码为:
if ($this->service->isAuthenticated) {
$this->id = $this->service->id;
$this->name = $this->service->getAttribute('name');
$this->email = $this->service->getAttribute('email');
$this->provider = $this->service->serviceName;
$this->setState('id', $this->id);
$this->setState('name', $this->name);
$this->setState('email', $this->email);
$this->setState('service', $this->service->serviceName);
}
我不是复制完整的函数,只是显示主逻辑。
我哪里做错了?我如何克服这个问题