Issue 95 in oauth-php: Behavior differs from a local version to a domain.com version

6 views
Skip to first unread message

oaut...@googlecode.com

unread,
Jan 15, 2011, 8:57:28 AM1/15/11
to oauth-ph...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 95 by martin.m...@gmail.com: Behavior differs from a local
version to a domain.com version
http://code.google.com/p/oauth-php/issues/detail?id=95

What steps will reproduce the problem?
1. Expose locally (MAMP) some services with oauth-php
2. Deploy them on a domain.com server
3. Try to use them

Hello,

I've been developing locally and exposing them with OAuth (oauth-php
framework). Everything works perfectly fine locally on my laptop but when I
deploy everything on my server it doesn't work anymore I get the following
error when I'm trying to get a request_token:

Can't verify request, missing oauth_consumer_key or oauth_token
I've be investigating why it doesn't behave the same and the only clue that
I found is in the log of OAuth: it looks like the oauth-php framework
doesn't fetch properly the parameters in my POST Requests.

I have the same version of PHP on my server and on my local environment. I
don't know what else could be affecting the oauth-php framework.

What can I do to find the problem? I don't know where to look...

Thanks!

Martin


oaut...@googlecode.com

unread,
Jun 12, 2011, 3:46:53 AM6/12/11
to oauth-ph...@googlegroups.com

Comment #1 on issue 95 by setya...@icreativelabs.com: Behavior differs from

Hi I have the same problem, and right now the problem it's solve.

This behavior come if you using apache/PHP cgi and can't find
function 'apache_request_headers', the system can't get Header
Authorization from request server.

For fix the problem please create file .htaccess and put this line
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

regards
Setyagus Sucipto

oaut...@googlecode.com

unread,
Aug 12, 2013, 2:33:20 PM8/12/13
to oauth-ph...@googlegroups.com

Comment #2 on issue 95 by jorgertr...@gmail.com: Behavior differs from a
Fixed for me

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages