Closed (fixed)
Project:
HybridAuth Social Login
Version:
7.x-2.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
31 Jan 2012 at 18:37 UTC
Updated:
21 Aug 2013 at 05:32 UTC
Jump to comment: Most recent file
Comments
Comment #1
rwohlebCan you provide the full error message? I haven't seen this issue.
Comment #2
nicholasyonko commentedIt returns a Google page simply saying that the response_type parameter is missing as show in the attached image. When the url is expanded, the response type is there. I have my site hosted on Acquia and am unsure if that impacts how the hybridauth library sends the uri to Google. I have no access that I can see to the raw php logs or the http logs.
Comment #3
rwohlebYour Acquia setup shouldn't be an issue. What version of the HybridAuth library are you using?
Also, can you give me the full URL when you get that error msg? Please X out the numbers in the URL when you post it... just in case.
Comment #4
nicholasyonko commentedThe HybridAuth Library I am using is 2.0.11-dev.
The URL is https://accounts.google.com/o/oauth2/auth?client_id=&redirect_uri=http%3A%2F%2F%2Fhybridauth%2Fendpoint%3Fhauth.done%3DGoogle&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapi...
Comment #5
nicholasyonko commentedAdditional info on this - it is an issue with the hybridauth library perhaps?
http://groups.google.com/group/hybridauth/browse_thread/thread/e4bb0dee4...
Comment #6
spazfoxI'm experiencing the same problem with Google authorization. Can you provide more detail on what you changed in the OAuth2Client.php file to make it work for you?
Comment #7
duozerskHey guys,
I have just met this issue when developing the 6.x-2.x branch. It was throwing the same error message for me and it is related to the PHP setting "arg_separator.output" being set to "&" (or it may be smth else, just not "&"). You can check this setting in your phpinfo output - it is available from the standard "Status report" on any Drupal installation (just click on the PHP version number or more information link near PHP version number).
Drupal 6 has this line in the settings.php file:
ini_set('arg_separator.output', '&');When you comment it out - everything starts working fine (it worked for me, you might need to change
'&'to'&'). For Drupal 7 installations you should check your PHP setup so that the "arg_separator.output" is set to just"&"and not"&".Another way to fix it is to patch hybridauth/Hybrid/thirdparty/OAuth/OAuth2Client.php near Line 64 (but I would strongly recommend to check and change the PHP setting above):
Hope this helps.
Thanks
AndyB
Comment #8
duozerskCorrecting the typo in the issue title.
Comment #10
queryblitz commented#7 worked for me, thank you! Had to edit the OAuth2Client.php file like you said.
Comment #11
mrded commented#7 Thank you! It works for me
Comment #12
drpchris commented#7 worked for me also. I changed it in the OAuth2Client.php file. Changing it in the settings.php file seems wrong, since the problem is with this module specifically. Maybe there can be setting for the module to change the separator just for Google or various logins?
Comment #13
shark commentedChanging the php setting as suggested in #7 worked for me as well. Thanks.
Also, somewhat related, the Drupal for Facebook module had the same issue.