Re: oauthprovider does not works on a https server
| From: | LI Daobing | Date: | Thu, 28 Oct 2010 09:43:24 +0000 |
| Subject: | Re: oauthprovider does not works on a https server | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-7796@lists.php.net to get a copy of this message | ||
Hello,
submitted at http://pecl.php.net/bugs/bug.php?id=19443
thanks.
On Thu, Oct 28, 2010 at 17:35, Pierre Joye <pierre.php@gmail.com> wrote:
> hi,
>
> Best would be to report a bug at http://pecl.php.net/oauth
>
> Thanks,
>
> On Wed, Oct 27, 2010 at 11:36 AM, LI Daobing <lidaobing@gmail.com> wrote:
>> Hello,
>>
>> cc me on reply, I does not subscribe to this list, thanks.
>>
>> I found that oauthprovider (r304239 from
>> http://svn.php.net/repository/pecl/oauth/trunk) does not
>> works on a
>> https server,
>>
>> after inspect on the OAuthException, it sounds that if construct a url
>> with http://domain.nam/path instead of
>> https://domain.nam/path
>>
>> a workaround for this is add following line in your apache virtualHost config
>>
>> SetEnv HTTP_X_FORWARDED_PROTO https
>>
>>
>> after inspect provider.c, I found that it use a strange way to inspect
>> whether the protocol is https or http, how about the https server is
>> not open on port 443?
>>
>> thanks
>>
>> $ grep -C 3 443 provider.c
>> if(proto && Z_STRLEN_PP(proto)) {
>> spprintf(&tmp, 0, "%s://%s%s",
>> Z_STRVAL_PP(proto), Z_STRVAL_PP(host), Z_STRVAL_PP(uri));
>> } else {
>> spprintf(&tmp, 0, "http%s://%s%s",
>> Z_LVAL_PP(port)==443?"s":"", Z_STRVAL_PP(host), Z_STRVAL_PP(uri));
>> }
>> return tmp;
>> }
>>
>>
>> --
>> Best Regards
>> LI Daobing
>>
>> --
>> PECL development discussion Mailing List (http://pecl.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net |
> http://www.libgd.org
>
--
Best Regards
LI Daobing