php - Implementing Yahoo oAuth Authentication

992

Hello I trying to implement a Yahoo oAuth login but I am not receiving any response.

Here is what I have:

YahooSession::clearSession();
$hasSession = YahooSession::hasSession(
    $this->Yahoo_API_CONFIG['appKey'],
    $this->Yahoo_API_CONFIG['appSecret'],
    $this->Yahoo_API_CONFIG['appId']
);

if($hasSession == FALSE) {   
    $callback = SITE_URL.'/Homes/user_yahoo_login';     
    $auth_url = YahooSession::createAuthorizationUrl(
        $this->Yahoo_API_CONFIG['appKey'],
        $this->Yahoo_API_CONFIG['appSecret'],
        $callback
    );
}
else {   
    $auth_url = SITE_URL.'/Homes/user_yahoo_login';
}
echo $auth_url;
die;

No authentication popup is shown.

People are also looking for solutions to the problem: php - Retrieving a category name from database

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.