[geeklog-devel] Oauth Login and open_basedir

Tom websitemaster at cogeco.net
Mon Nov 18 18:16:30 EST 2013


I may have spoken to soon.  Google Oauth login is not working at the moment.
HTTP_Request2_Adapter_Socket should be able to handle https requests right?

Tom

-----Original Message-----
From: geeklog-devel-bounces at lists.geeklog.net
[mailto:geeklog-devel-bounces at lists.geeklog.net] On Behalf Of Tom
Sent: November-18-13 5:54 PM
To: 'Geeklog Development'
Subject: Re: [geeklog-devel] Oauth Login and open_basedir

Works for me as well. I am glad the fix is so easy. I will update the
repository.

Tom

-----Original Message-----
From: geeklog-devel-bounces at lists.geeklog.net
[mailto:geeklog-devel-bounces at lists.geeklog.net] On Behalf Of ????
Sent: November-18-13 9:18 AM
To: Geeklog Development
Subject: Re: [geeklog-devel] Oauth Login and open_basedir

ITO san,

Thanks!

>'adapter' => 'HTTP_Request2_Adapter_Socket',

It works well.

--
Ivy

2013/11/18 Kenji ITO <geeklog at mystral-kk.net>:
> Tom wrote:
>
>> With Oauth logins Facebook now sends a url to the profile photo that 
>> actually gets redirected to the actual photo.
>>
>> To handle this I switched to using the pear library HTTP/Request2.php 
>> which uses CURL to handle any redirections.
>>
>> This means in the php configuration safemode needs to be off along 
>> with open_basedir. From my understanding safemode is not used much 
>> anymore but open_basedir tends to be used in shared hosting 
>> environments. If open_basedir is set then it looks like our OAuth 
>> logins will fail (if a profile pic is present).
>>
>> What is everyone's thoughts on this?
>>
>> The only way around this would be rewrite the profile picture 
>> downloading and manually follow the redirections until we get what we
want (an image).
>
> HTTP/Request2 could use socket as its adapter.  How about changing 
> line
> 404 of "oauthhelper.class.php" from
>
>             'adapter' => 'HTTP_Request2_Adapter_Curl',
>
> to
>
>             'adapter' => 'HTTP_Request2_Adapter_Socket',
>
> and seeing how it will work out?  Or, HTTP/Request2 with socket as its 
> adapter doesn't support redirects?
> --
> mystral-kk (Kenji ITO)
_______________________________________________
geeklog-devel mailing list
geeklog-devel at lists.geeklog.net
http://eight.pairlist.net/mailman/listinfo/geeklog-devel

_______________________________________________
geeklog-devel mailing list
geeklog-devel at lists.geeklog.net
http://eight.pairlist.net/mailman/listinfo/geeklog-devel




More information about the geeklog-devel mailing list