After the "The application has been autorized" will appear but you will also get another error message after that
Notice: Undefined index: oauthconnector_request_key in oauth2_common_page_authorized() (line 14 of /xxxxxxxxxxxxxxxxxxxx/oauthconnector/modules/oauth2/oauth2_common.pages.inc).

Comments

tiago.urbano’s picture

Hi,

I was with the same issue, I was thinking the problem was in OAuth Connector module, and I resolved it inserting 2 lines in HttpClientCurlDelegate.inc inside http_client module.

Go to public function curl and insert the lines bellow, above the curl_setopt_array($ch, $curlopts)

curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);

I believe there is a better solution than mine, if you find, pease let me know!
Thanks

tiago.urbano’s picture

I create a patch, where you can enable or disable SSL Verification

tiago.urbano’s picture

Status: Active » Needs review
StatusFileSize
new2.87 KB

I create a patch, where you can enable or disable SSL Verification

tiago.urbano’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
StatusFileSize
new2.87 KB

I create a patch, where you can enable or disable SSL Verification

voxpelli’s picture

Status: Needs review » Needs work

Sorry, but disabling the checks in the way that you are is not a good idea - it exposes your site to security risks it shouldn't be exposed to.

Check this post for more info: http://hueniverse.com/2010/09/oauth-bearer-tokens-are-a-terrible-idea/

Techbot’s picture

Priority: Major » Critical

I have a sneaking suspicion that this module does not work at all, since the move to oauth2 (and drupal 7). Regardless of whether ssl is turned off (bad idea) or not.

My colleague and I have been though the code with the various suggestions and have made no progress whatsoever.

Is there any others out there who have made this work ?(preferably without turning off ssl- though that would be a start)

Bojhan’s picture

This seems like a bit of an odd work around. I am able to use the module just fine, but do still get this error.