Hello,
I've getting the following error and not sure what I've missed

    Notice: Undefined index: oauth_token in OAuth1Client->requestToken() (line 84 of /public_html/sites/all/libraries/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php).
    Notice: Undefined index: oauth_token_secret in OAuth1Client->requestToken() (line 84 of /public_html/sites/all/libraries/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php).
    There was an error processing your request.

Could somebody pls enlighten me?

Regards
almamun

Comments

duozersk’s picture

Assigned: Unassigned » duozersk
Status: Active » Fixed

almamun,

Sorry for a late reply - somehow I have missed this request.

Please check that you have created an application with Yahoo and specified the keys for this auth provider on the HybridAuth module admin page ("Settings" link next to the provider).

Thanks
AndyB

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

claudiu.cismaru’s picture

Same issue in here. I have created the Yahoo application and specified the keys for auth, but it's not working. It remains in a redirection loop. After stopping the page, and refresh the main login page, those notices appears.

duozersk’s picture

claudiu.cismaru,

Could you please open a new issue for your request? This one is rather old and was opened against HybridAuth version 7.x-2.5 which is rather old too.

AndyB

duozersk’s picture

Issue summary: View changes

Removed links

tradenet’s picture

Version: 7.x-2.5 » 7.x-2.x-dev
Category: Support request » Bug report
Issue summary: View changes
Status: Closed (fixed) » Active
Issue tags: +yahoo HybirdAuth

Same issue as OP.
I have created auth keys, verified domain. but still:

Notice: Undefined index: oauth_token in OAuth1Client->requestToken() (line 84 of /home//html/sites/all/libraries/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php).

Notice: Undefined index: oauth_token_secret in OAuth1Client->requestToken() (line 84 of /home/html/sites/all/libraries/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php).

tradenet’s picture

Status: Active » Closed (works as designed)

Updated Yahoo.php library component from HybirdAuth github with OpenID based

<?php
/*!
* HybridAuth
* http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
* (c) 2009-2012, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html 
*/

/**
 * Hybrid_Providers_Yahoo OpenID based
 * 
 * Provided as a way to keep backward compatibility for Yahoo OpenID based on HybridAuth <= 2.1.0
 * 
 * http://hybridauth.sourceforge.net/userguide/IDProvider_info_Yahoo.html
 */
class Hybrid_Providers_Yahoo extends Hybrid_Provider_Model_OpenID
{
	var $openidIdentifier = "https://open.login.yahooapis.com/openid20/www.yahoo.com/xrds"; 

	/**
	* finish login step 
	*/
	function loginFinish()
	{
		parent::loginFinish();

		$this->user->profile->emailVerified = $this->user->profile->email;

		// restore the user profile
		Hybrid_Auth::storage()->set( "hauth_session.{$this->providerId}.user", $this->user );
	}
}
duozersk’s picture

Issue tags: -yahoo HybirdAuth
ggarry’s picture

hmm I updated Yahoo.php with this code and now when I register with a yahoo account it lists my username as "1",

vinmassaro’s picture

Status: Closed (works as designed) » Active

We're seeing the same error, minus the undefined index errors: "There was an error processing your request". We are using Hybridauth 7.x-2.x-dev (2014-07-21), so I'm reopening this issue.

duozersk’s picture

Component: Miscellaneous » HybridAuth library
Assigned: duozersk » Unassigned
Status: Active » Closed (won't fix)
Related issues: +#2377825: Yahoo login not working.

Closing it as this issue is definitely related to the HybridAuth library and not to the module code.

AndyB