
oauth-php - issue #95
Behavior differs from a local version to a domain.com version
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
Comment #1
Posted on Jun 12, 2011 by Happy ElephantHi 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
Comment #2
Posted on Aug 12, 2013 by Quick HorseFixed for me
Status: New
Labels:
Type-Defect
Priority-Medium