Active
Project:
HybridAuth Social Login
Version:
7.x-2.x-dev
Component:
HybridAuth library
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2013 at 07:58 UTC
Updated:
7 Dec 2017 at 22:05 UTC
Jump to comment: Most recent
Comments
Comment #1
duozerskKonstantin,
Thanks for the report.
Yep, HybridAuth library is not compatible with the OAuth module. It can't be fixed by this module code, only on the HybridAuth library level.
See also #1942376: Problems with twitter and linkedin and #2130301: Linkedin authentication doesn't work with Twitter module.
Thanks
AndyB
Comment #2
Konstantin Komelin commentedCould you please inform users about this issue through the project page?
Comment #3
duozerskSure, added it to the project page.
Comment #4
Konstantin Komelin commentedThank you Andy.
Comment #5
duozerskThis issue should be fixed by https://github.com/hybridauth/hybridauth/pull/244 - it is already included in the HybridAuth library release v2.2.2
AndyB
Comment #6
m3chas commentedI have the library 2.2.2 but still getting the error message, any idea?
Comment #7
duozerskComment #8
tce commentedI'm using library v2.3.0 and getting the error message: Fatal error: Cannot redeclare class OAuthSignatureMethod_HMAC_SHA1
Update: Probably not the best way to do it but in the hybridauth library file Provider_Model_OAuth1.php I changed:
to this:
Seems to be working now.
Comment #9
Anonymous (not verified) commentedThe solution in #8 works.
Comment #10
bdupls commentedI tried Solution #8 and the error changes to.
Fatal error: Class 'Hybrid_Exception' not found in /home/xxx/public_html/sites/all/libraries/hybridauth/Hybrid/Endpoint.php on line 213
This error seems to be a duplication of the error on this page which is not solved.
https://www.drupal.org/node/2130301
Comment #11
m faheem commentedI am also getting the same error, I have upgraded the libraries as well, but still the same issue
Fatal error: Class 'Hybrid_Exception' not found in /srv/bindings/f21e6f9ba0904ef08b56e352cad1a099/code/sites/all/libraries/hybridauth/Hybrid/Endpoint.php on line 205
Comment #12
duozerskComment #13
duozerskComment #14
kgaut commentedHi,
I was facing the same issue, so I did a PR with #8 on HybridAuth : https://github.com/hybridauth/hybridauth/pull/560
Thanks for the solution.
Comment #15
StorytellerCZ commentedFixed in HybridAuth v2.5.1, please update.
Comment #16
roborew commentedBumping this as have just ran into the same issue with facebook integration:
The OAuthSignatureMethod_HMAC_SHA1 class is being declared twice as I have Oauth installed for the twitter module. Looks like this approach #1839636: Using HybridAuth with PECL OAuth would likely provide a hacky fix for the issue to get around the problem.
Comment #17
roborew commented